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

Fix pcrglob #2

Merged
merged 3 commits into from
Dec 11, 2023
Merged

Fix pcrglob #2

merged 3 commits into from
Dec 11, 2023

Conversation

BSchilperoort
Copy link
Member

The OptionalDestBMI from grpc4bmi broke things, because the old pcrglobwb model did not have all methods implemented correctly:
get_grid_size is missing, which can be circumvented through get_grid_shape.

This leads to basically all util methods breaking, as well as _bmi.get_value if you don't specify a dest array.

By overwriting the eWaterCycle methods that make use of these, we can circumvent the problem.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -27,9 +27,20 @@
},
Copy link

@geek-yang geek-yang Dec 8, 2023

Choose a reason for hiding this comment

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

Is it correct? Should it be some numbers e.g. "1.0", rather than this 'setters'?


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah that's correct.

I think the old pcrglob didn't have version numbers and the tags of the old containers aren't numbered but named...

Choose a reason for hiding this comment

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

😂 You are on holiday right? Who said that he was not a workaholic? Just stop working and enjoy your long weekend!

Copy link

@geek-yang geek-yang left a comment

Choose a reason for hiding this comment

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

Thanks for fixing it. The notebook runs properly on my machine.

@BSchilperoort BSchilperoort merged commit bb4bfa6 into main Dec 11, 2023
@BSchilperoort BSchilperoort deleted the fix-model branch December 11, 2023 10:16
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