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

Fix asterisk notation for mpes reader #1

Open
domna opened this issue Feb 20, 2024 · 0 comments
Open

Fix asterisk notation for mpes reader #1

domna opened this issue Feb 20, 2024 · 0 comments
Assignees

Comments

@domna
Copy link
Collaborator

domna commented Feb 20, 2024

Axis names from xarray should be collected properly.
We use an asterisk for this to create key-value pairs:

"/ENTRY[entry]/data": {
    "@axes": "@data:dims",
    "AXISNAME_indices[@*_indices]": "@data:*.index",
    "@signal": "data",
    "data": "@data:data",
    "data/@units": "counts",
    "AXISNAME[*]": "@data:*.data",
    "AXISNAME[*]/@units": "@data:*.unit",
    "energy/@type": "binding"
  }

, which creates, e.g., AXISNAME[energy] = @data:energy.data for all names in the data array.
We however, would like to be able to rename the key manually or enter a different value for the key. So if either the value or the key are present in the file the automatism should not write this particular entry. This manual overwriting does not work properly and needs to be fixed.

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

No branches or pull requests

1 participant