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

edge case fix for collection - get_slices #143

Merged
merged 1 commit into from
Mar 20, 2023
Merged

Conversation

bnb32
Copy link
Collaborator

@bnb32 bnb32 commented Mar 10, 2023

Same issue as NREL/nsrdb#56 (comment)

@bnb32 bnb32 added the bug Something isn't working label Mar 10, 2023
@bnb32 bnb32 requested a review from grantbuster March 10, 2023 15:15
@malihass
Copy link
Collaborator

Just for context, the issue is that in the case where row_loc is array([0]), any(row_loc) will return False

Copy link
Member

@grantbuster grantbuster left a comment

Choose a reason for hiding this comment

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

Good catch! Good example of where trying to be too fancy with python booleans can get you into trouble.

@bnb32 bnb32 merged commit 38ae1d3 into main Mar 20, 2023
@bnb32 bnb32 deleted the bnb/collection_edge_case_fix branch March 20, 2023 15:19
github-actions bot pushed a commit that referenced this pull request Mar 20, 2023
edge case fix for collection - get_slices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants