Commit f223020 1 parent 0c9e843 commit f223020 Copy full SHA for f223020
File tree 1 file changed +5
-2
lines changed
python/ngen_cal/src/ngen/cal
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ def output(self) -> 'DataFrame':
62
62
"""
63
63
# TODO should contributing_catchments be singular??? assuming it is for now...
64
64
# Call output hooks, take first non-none result provided from hooks (called in LIFO order of registration)
65
- df = self ._hooks .ngen_cal_model_output (id = self ._eval_nexus .contributing_catchments [0 ].replace ('cat' , 'wb' ))
65
+ cat_id = self ._eval_nexus .contributing_catchments [0 ].id
66
+ assert cat_id .startswith ("cat" ), f"expected catchment id to start with 'cat': { cat_id } "
67
+ cat_id = cat_id .replace ("cat" , "wb" )
68
+ df = self ._hooks .ngen_cal_model_output (id = cat_id )
66
69
if df is None :
67
70
# list of results is empty
68
71
print ("No suitable output found from output hooks..." )
@@ -144,4 +147,4 @@ def restart(self):
144
147
except FileNotFoundError :
145
148
return 0
146
149
#Reload the evaluation information
147
- return Evaluatable .restart (self )
150
+ return Evaluatable .restart (self )
You can’t perform that action at this time.
0 commit comments