Commit 63282988 by devttys0

Made entropy module's output file accessible via the API

parent e0873ac9
......@@ -84,6 +84,7 @@ class Entropy(Module):
self.HEADER[-1] = "ENTROPY"
self.max_description_length = 0
self.file_markers = {}
self.output_file = None
if self.use_zlib:
self.algorithm = self.gzip
......@@ -310,8 +311,8 @@ class Entropy(Module):
ax.legend(loc='lower right', shadow=True)
if self.save_plot:
out_file = os.path.join(os.getcwd(), os.path.basename(fname)) + '.png'
fig.savefig(out_file)
self.output_file = os.path.join(os.getcwd(), os.path.basename(fname)) + '.png'
fig.savefig(self.output_file)
else:
plt.show()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment