Skip to content

Commit

Permalink
Remove metadata argument for jpg in make_figs
Browse files Browse the repository at this point in the history
Not supported for this filetype, was throwing error.
  • Loading branch information
mnwhite committed Feb 20, 2024
1 parent 6c89ee9 commit 81e3bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HARK/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ def make_figs(figure_name, saveFigs, drawFigs, target_dir="Figures"):
print(f"Saving figure {figure_name} in {target_dir}")
plt.savefig(
os.path.join(target_dir, f"{figure_name}.jpg"),
metadata={"CreationDate": None},
#metadata={"CreationDate": None}, # metadata not supported for jpg
) # For web/html
plt.savefig(
os.path.join(target_dir, f"{figure_name}.png"),
Expand Down

0 comments on commit 81e3bf0

Please sign in to comment.