You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print(f'ERROR: File {ncfname} not found', file=sys.stderr)
sys.exit(1)
Since the inputs for the class come from command line arguments (parsed through argparse in the hres_ic.py), it would be best to move all input argument's sanity check within a "parse_argument" function to:
fail fast (at the beginning of the parent script)
improve testing
clear up code and group similar functionality all in one place
The text was updated successfully, but these errors were encountered:
Seems lowish priority. I've made this a medium priority in case it we would end up writing tests that would then have to be rewritten after this fairly straightforward change.
In which Project board did you make it a medium priority? I couldn't see any priority assigned to it so in the ACCESS-RAM3 Project I assigned a Low priority.
Please feel free to change it as you prefer.
Anyway, I agree this is a low priority issue.
On the unit-testing matter: yes, it would definitely require changes with the fixing of this issue, however I don't expect the changes to be very big, so it should be completely feasible to fix this issue even if unit-testing is already present in main.
In the code there are several lines in which sanity check of inputs take place.
For example in the
bounding_box
class:replace_landsurface/src/replace_landsurface_with_ERA5land_IC.py
Lines 59 to 78 in 2dcc1d7
or
replace_landsurface/src/replace_landsurface_with_ERA5land_IC.py
Lines 81 to 85 in 2dcc1d7
Since the inputs for the class come from command line arguments (parsed through
argparse
in the hres_ic.py), it would be best to move all input argument's sanity check within a "parse_argument" function to:The text was updated successfully, but these errors were encountered: