From 81e3bf0aa7c1d080ffce6188642d62bd9219c56a Mon Sep 17 00:00:00 2001 From: "Matthew N. White" Date: Tue, 20 Feb 2024 11:30:24 -0500 Subject: [PATCH] Remove metadata argument for jpg in make_figs Not supported for this filetype, was throwing error. --- HARK/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HARK/utilities.py b/HARK/utilities.py index 520dfc7dc..503e29056 100644 --- a/HARK/utilities.py +++ b/HARK/utilities.py @@ -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"),