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

[Bug]: Arithmetic operations on multiple-coordinates fails #696

Open
fernandezc opened this issue Jun 20, 2023 · 0 comments
Open

[Bug]: Arithmetic operations on multiple-coordinates fails #696

fernandezc opened this issue Jun 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@fernandezc
Copy link
Collaborator

fernandezc commented Jun 20, 2023

What happened?

for multi-coordinates, the following simple operation fails:

dataset.y -= dataset.y[0]

This is because the slicing of the multi coordinates do not return a CoordSet object but a Coord.

A workaround is to explicitly set which of the sub-coordinate is used:

dataset.y_1 -= dataset.y_1[0]

What did you expect to happen?

The operation should act transparently on the default coordinate.

@fernandezc fernandezc added the bug Something isn't working label Jun 20, 2023
@fernandezc fernandezc changed the title [Bug]: Arithmetic operation on multiple-coordinate fails [Bug]: Arithmetic operations on multiple-coordinates fails Jun 20, 2023
@fernandezc fernandezc self-assigned this Jun 20, 2023
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

No branches or pull requests

1 participant