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

Fixed bug in network graphic related to link colormap #429

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

kaklise
Copy link
Collaborator

@kaklise kaklise commented Jun 12, 2024

Summary

The following update fixes a bug in the link colormap that is created in plot_network. The previous code ignored user input from link_range and used only positive values.

The PR also includes minor updates to demos.

Tests and documentation

NA

Acknowledgement

By contributing to this software project, I acknowledge that I have reviewed the software quality assurance guidelines and that my contributions are submitted under the Revised BSD License.

@kaklise kaklise requested a review from kbonney June 12, 2024 16:57
Copy link
Collaborator

@kbonney kbonney left a comment

Choose a reason for hiding this comment

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

The updates make sense. Ran some of the tests and double checked the results against what main produces and they matched (when not using link_range), and when adding a custom link_range the new code produced the desired behavior. While reviewing I noticed we don't have any tests that provide custom inputs for link_range, though. Something to remember next time we take a pass at the test suite.

@kaklise kaklise merged commit cd9290c into USEPA:main Jun 13, 2024
28 of 40 checks passed
@kaklise kaklise deleted the demos branch July 18, 2024 17:46
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