Skip to content

Conversation

@HCookie
Copy link
Collaborator

@HCookie HCookie commented Nov 14, 2025

An improper cast of a hashable/str into a set caused issues on the reshape coord flatten.
Introduced by #183

@HCookie HCookie self-assigned this Nov 14, 2025
@HCookie HCookie added bug Something isn't working Software Task labels Nov 14, 2025
@HCookie HCookie requested a review from gemmaellen November 14, 2025 15:45
selected = dataset[var].sel(**{discovered_coord: coord_val}) # type: ignore
selected = selected.drop_vars(discovered_coord) # type: ignore
selected.attrs.update(**{discovered_coord: coord_val})
selected.attrs.update(**{str(discovered_coord): coord_val})
Copy link
Collaborator

@nikeethr nikeethr Jan 6, 2026

Choose a reason for hiding this comment

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

Is there a reason for the explicit string representation? Would it be better to let it error out if it is (unexpectedly) not a string? If this is how its done everywhere else, then just ignore this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Software Task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants