make parent, not file

This commit is contained in:
Valentin Boettcher 2021-12-13 17:27:05 +01:00
parent 97e3fe38e9
commit c2fbda0a16

View file

@ -229,7 +229,7 @@ def ensemble_mean(
if save:
path = Path(save)
path.mkdir(parents=True, exist_ok=True)
path.parent.mkdir(parents=True, exist_ok=True)
with path.open("wb") as f:
np.save(f, results)