-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge hazard update with main #73
Conversation
Save fiat config
Update hazard
Update hazard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve the merge to have everything in the same branch but some work still needs to be done on improving the code. I'll test it as well if I have the time today.
var, | ||
chunks, | ||
) | ||
ds.to_netcdf("C:/Users/fuentesm/CISNE/HydroMT_sprint_sessions/test_77.nc") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the local path in the test and save the file with the function
hyfm.write()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great that you included both ways (programmatically and via the ini file) to test the hazard script!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good at first sight. Things to do still:
- Add docstrings
- Add type hinting
- Use underscores and only small letters for the function names (e.g. not checkInputs but check_inputs)
- Split the functions further into smaller functions, e.g. each check type could be it's own small function and the processing of event maps can be in a different function than the processing of RP flood maps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please uncomment the code that you commented out to make it work in future commits, as now I have to resolve the issues in the merge.
No description provided.