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

Update routing_product.py #401

Merged
merged 9 commits into from
Oct 2, 2024
Merged

Update routing_product.py #401

merged 9 commits into from
Oct 2, 2024

Conversation

lou-a
Copy link
Collaborator

@lou-a lou-a commented Sep 30, 2024

Modified routing_product.py to correctly set the river length to zero and set default values for reach attributes in sub-basins with no channel routing (i.e., sub-basins with lakes or headwater basins).

Pull Request Checklist:

  • This PR addresses an already opened issue (for bug fixes / features)
  • (If applicable) Documentation has been added / updated (for bug fixes / features).
  • (If applicable) Tests have been added.
  • CHANGELOG.rst has been updated (with summary of main changes).
    • Link to issue (:issue:number) and pull request (:pull:number) has been added.

What kind of change does this PR introduce?

  • ...

Does this PR introduce a breaking change?

Other information:

Modified routing_product.py to correctly set the river length to zero and set default values for reach attributes in sub-basins with no channel routing (i.e., sub-basins with lakes or headwater basins).
Copy link

github-actions bot commented Sep 30, 2024

Welcome, new contributor!

It appears that this is your first Pull Request. To give credit where it's due, we ask that you add your information to the AUTHORS.rst and .zenodo.json:

  • The relevant author information has been added to AUTHORS.rst and .zenodo.json.

Please make sure you've read our contributing guide. We look forward to reviewing your Pull Request shortly ✨

Modified routing_product.py to correctly set the river length to zero and set default values for reach attributes in sub-basins with no channel routing (i.e., sub-basins with lakes or headwater basins).
@Zeitsperre Zeitsperre force-pushed the routing-product-fixes branch from 80b9d95 to 31bd68d Compare September 30, 2024 20:43
@lou-a lou-a requested a review from huard September 30, 2024 20:50
@coveralls
Copy link

coveralls commented Sep 30, 2024

Coverage Status

coverage: 81.343% (+0.1%) from 81.238%
when pulling 74a6bd3 on routing-product-fixes
into 8778694 on master.

Copy link
Collaborator

@huard huard left a comment

Choose a reason for hiding this comment

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

Just add a note in the CHANGELOG, and a test to confirm everything is working as you expect.

src/ravenpy/extractors/routing_product.py Outdated Show resolved Hide resolved
src/ravenpy/extractors/routing_product.py Outdated Show resolved Hide resolved
lou-a and others added 3 commits October 2, 2024 10:11
Added a note in the CHANGELOG.rst, added contributor information in the .zenodo.json and in the AUTHORS.rst files, and added tests in the test_extractor.py script to confirm that everything is working as I expect.
@github-actions github-actions bot added the docs label Oct 2, 2024
@lou-a
Copy link
Collaborator Author

lou-a commented Oct 2, 2024

Just add a note in the CHANGELOG, and a test to confirm everything is working as you expect.

@huard, let me know whether the tests seem ok. It's my first time coding tests 🤓

Copy link
Collaborator

@huard huard left a comment

Choose a reason for hiding this comment

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

looks good,

@lou-a lou-a merged commit 2fc6cfb into master Oct 2, 2024
16 checks passed
@lou-a lou-a deleted the routing-product-fixes branch October 2, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues with rvx files generation for sub-basins with lake HRUs
3 participants