Skip to content

Commit

Permalink
Save to separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
burggraaff committed Apr 17, 2024
1 parent 06e57c5 commit 999898a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plot_ensemble_parameter_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import argparse
parser = argparse.ArgumentParser(description="Analyse a PCSE ensemble with one varying parameter, as generated by wofost_ensemble_parameters.py.")
parser.add_argument("output_dir", help="folder to load PCSE outputs from", type=fpcup.io.Path)
parser.add_argument("--results_dir", help="folder to save plots into", type=fpcup.io.Path, default=fpcup.DEFAULT_RESULTS/"sensitivity")
parser.add_argument("-v", "--verbose", help="increase output verbosity", action="store_true")
args = parser.parse_args()

Expand Down Expand Up @@ -98,5 +99,5 @@ def number_of_replicates(data: fpcup.geo.gpd.GeoDataFrame, column: str) -> int:
fig.align_ylabels()

# Save figure
plt.savefig(fpcup.DEFAULT_RESULTS/f"{args.PARAMETER_NAME}-{crop_short}.pdf", bbox_inches="tight")
plt.savefig(args.results_dir/f"{args.PARAMETER_NAME}-{crop_short}.pdf", bbox_inches="tight")
plt.close()
Empty file added results/sensitivity/placeholder
Empty file.

0 comments on commit 999898a

Please sign in to comment.