Commit 38569587 authored by Oriol Tintó-Prims's avatar Oriol Tintó-Prims
Browse files

Added assertion for members path, a fix on writing forced variable list and a...

Added assertion for members path, a fix on writing forced variable list and a limited retrial for failed jobs.
parent 02609c13
......@@ -37,8 +37,9 @@ def plot_result(result=None, output_folder=None, limits=None):
# The result file has to be a dictionary containing the results from an experiment
# Path to the ensemble members used to create the limits file
ensemble_members_path = "/esarchive/scratch/otinto/NEMO4.0.1-PrecisionAnalysis/ReferenceData/member_*_RMSE.pkl"
# TODO: Find an appropiate way of having the ensemble member information here without having to manually load
# members found in a hardcoded path.
ensemble_members_path = "/home/oriol/tmp/analysis_configuration_files/member_*_RMSE.pkl"
# Get filenames
filenames = glob.glob(ensemble_members_path)
......@@ -47,6 +48,8 @@ def plot_result(result=None, output_folder=None, limits=None):
members = []
for filename in filenames:
members.append(load_pkl(filename))
if members == []:
raise AssertionError("")
if result is not None:
grids = result.keys()
......@@ -63,10 +66,6 @@ def plot_result(result=None, output_folder=None, limits=None):
del example_file
# Load limit file
if limits is None:
limits = load_pkl("/home/Earth/otintopr/Workspace/AutoRPE/MiscellaneousPKLS/limits_grid_T.pkl")
# Start plotting
for grid in grids:
for variable in variables[grid]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment