create correct dir

This commit is contained in:
Valentin Boettcher 2024-12-20 11:42:50 -05:00
parent 5f0fb5d9a5
commit e5b55e4a30
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -154,7 +154,7 @@ def get_kwargs():
def save_figure(fig, name, extra_meta=None, include_kwags=True, *args, **kwargs):
import pickle
dir = pathlib.Path(f"./figs/")
dir = pathlib.Path(f"./figs/{name}.pdf").parents[0]
dir.mkdir(exist_ok=True)
fig.tight_layout()