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

add support for arrays in scientificMetadata #924

Closed
jkotan opened this issue Nov 30, 2023 · 3 comments · May be fixed by #925
Closed

add support for arrays in scientificMetadata #924

jkotan opened this issue Nov 30, 2023 · 3 comments · May be fixed by #925
Labels
meeting Discuss in meeting before merge

Comments

@jkotan
Copy link
Contributor

jkotan commented Nov 30, 2023

Summary

At DESY we often store some parts of scientificMetadata in arrays/lists e.g. vectors

"vector": {
    "value": [1,1,0],
    "unit": "mm"
}

However, I such case the current algorithm to convert value and units to SI crashes.

Expected Behaviour

I would like to support also arrays/lists in scientificMetadata as well.

@nitrosx
Copy link
Contributor

nitrosx commented Dec 1, 2023

@jkotan thank you so much for the PR.
Interesting enough, one of our instrument scientist just mention this exact feature.
I will review the PR soon.

@sbliven
Copy link
Contributor

sbliven commented Dec 6, 2023

Isn't this a bug in the frontend display of arrays? I think we have arrays in some of our datasets, but we just display scientificMetadata as a JSON object without any restrictions or parsing.

@nitrosx
Copy link
Contributor

nitrosx commented Jan 2, 2024

Opened issue #984 with a proposed comprehensive solution that integrates the one proposed in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meeting Discuss in meeting before merge
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants