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

ResORR plugin and minor fix for forecasting #91

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

SarathUW
Copy link
Collaborator

Commit 1
Fixed runtime issues with forecasting plugin
- rat fails if PLUGINS section is not present in config.
- removed unused import cfgrib statement
Commit 2
Adding the ResORR plugin to RAT

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing it.

from rat.plugins.resorr.data_prep import generate_network
from resorr.data_prep import generate_forcings_from_rat, generate_network
from resorr.network import ReservoirNetwork
from tqdm.notebook import tqdm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed. Thanks for checking the code.

Copy link
Member

@SanchitMinocha SanchitMinocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not read the ResORR code in detail. But it looks good, well-documented and error-handling also seems great.

Copy link
Member

@SanchitMinocha SanchitMinocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. Thank you for fixing it and pushing the plugin code.

@SanchitMinocha SanchitMinocha merged commit bf64674 into UW-SASWE:main Feb 20, 2024
@SanchitMinocha
Copy link
Member

SanchitMinocha commented Feb 21, 2024

Forgot to mention it earlier - @pritamd47 or @SarathUW
Can anyone of you mention details of how to use ResORR from within RAT as a plugin in the Plugins section of RAT docs. You can there mention for complete documentation on how ResORR works refer to https://resorr.readthedocs.io/en/latest/.

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