Skip to content
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

Merged
merged 4 commits into from
May 3, 2023
Merged

Merge hazard update with main #73

merged 4 commits into from
May 3, 2023

Conversation

Mares2022
Copy link
Contributor

No description provided.

@Mares2022 Mares2022 requested a review from frederique-hub May 3, 2023 08:08
Copy link
Collaborator

@frederique-hub frederique-hub left a 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")
Copy link
Collaborator

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()

Copy link
Collaborator

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!

Copy link
Collaborator

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.

Copy link
Collaborator

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.

@frederique-hub frederique-hub merged commit 8742d62 into main May 3, 2023
@frederique-hub frederique-hub deleted the Hazard_update branch May 3, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants