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

Units #11

Merged
merged 13 commits into from
Sep 19, 2024
Merged

Units #11

merged 13 commits into from
Sep 19, 2024

Conversation

ytittes
Copy link
Contributor

@ytittes ytittes commented Sep 4, 2024

Should now properly support the documentation website, have namespaces and clear the tests without issues.

@ytittes ytittes requested a review from sbliven September 4, 2024 11:46
Copy link

github-actions bot commented Sep 18, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://osc-em.github.io/OSCEM_Schemas/pr-preview/pr-11/
on branch gh-pages at 2024-09-19 13:15 UTC

Copy link
Member

@sbliven sbliven left a comment

Choose a reason for hiding this comment

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

This PR includes a lot of different features. In the future can you try to keep the docs changes separate from the schema changes? It would also be good to add more to the PR description, eg a summary of breaking schema changes.

This looks good other than the e/Ų unit.

Eventually I think we might want to define QuantityValue more precisely using qudt, but I think that can be backwards compatible with the current definition.

There's a few issues with the generated preview, but let's merge this and then fix the docs afterwards.

"acquisition": {
"detector": "Falcon 4i",
"dose_per_movie": {
"unit": "e/Ų",
Copy link
Member

Choose a reason for hiding this comment

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

Did we decide whether to use electrons/Å^2 or Å^-2 for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we decided on Å^-2 as electrons are not a unit and to avoid confusion with the scicat SI converter. The fact the count concerns electrons is explicitly specified in the schemas field description.

@ytittes ytittes merged commit ceff89b into main Sep 19, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants