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: frame.data(...) returns data in wrong order #68

Closed
kay-ro opened this issue Oct 18, 2024 · 1 comment · Fixed by #70
Closed

BUG: frame.data(...) returns data in wrong order #68

kay-ro opened this issue Oct 18, 2024 · 1 comment · Fixed by #70
Assignees
Labels
bug Something isn't working module: base status: ready for review Needs to be reviewed

Comments

@kay-ro
Copy link
Member

kay-ro commented Oct 18, 2024

Description:

The order of the data returned by frame.data(...) is not the one it is supplied in.
This may be confusing and may lead to unexpected results.

image

Code for reproduction:

traj[0].data("z", "x", "y")
traj[0].data("x", "z", "y")
traj[0].data("x", "y", "z")

Error message:

No response

Python and AMEP versions:

1.0.2

Additional information:

No response

How did you install AMEP?

None

@kay-ro kay-ro added bug Something isn't working status: to do Issues that someone needs to work on module: base labels Oct 18, 2024
@kay-ro kay-ro added this to the release v1.0.3 milestone Oct 18, 2024
@kay-ro
Copy link
Member Author

kay-ro commented Oct 18, 2024

the issue is the used numpy.unique() function which sorts the keys alphabetically.
image

@kay-ro kay-ro self-assigned this Oct 18, 2024
kay-ro pushed a commit that referenced this issue Oct 18, 2024
@kay-ro kay-ro added status: ready for review Needs to be reviewed and removed status: to do Issues that someone needs to work on labels Oct 18, 2024
@kay-ro kay-ro linked a pull request Oct 21, 2024 that will close this issue
@kay-ro kay-ro modified the milestones: release v1.0.3, release v1.1.0 Oct 22, 2024
@kay-ro kay-ro closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module: base status: ready for review Needs to be reviewed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant