Skip to content

Retrieve crystal rotation from nexus file.#155

Merged
YooSunYoung merged 1 commit intomainfrom
crystal-rotation
Nov 10, 2025
Merged

Retrieve crystal rotation from nexus file.#155
YooSunYoung merged 1 commit intomainfrom
crystal-rotation

Conversation

@YooSunYoung
Copy link
Copy Markdown
Member

We need to export crystal_rotation (sample orientation) to the output file for next step of reduction.
We haven't settled about how exactly to store this information in the real nexus file.
This is a improvised temporary solution for (mcstas to nexus) translated files.

@jl-wynen
Copy link
Copy Markdown
Member

It would be great if we could get a solution that also works for other instruments. For BIFROST, it is stored in an NXparameter group in entry: ('a3' is the sample angle)
bifrost-angle

AFAIK, there is not decision on how ECDC will store it. But it should be something similar.

RuntimeWarning,
stacklevel=2,
)
return sc.vector([0, 0, 0], unit='deg')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need this for backwards compatibility?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sort of...? It's for the next step of the reduction.
As far as I understood, DIALS expect this field in the file.

@YooSunYoung YooSunYoung merged commit 2221991 into main Nov 10, 2025
4 checks passed
@YooSunYoung YooSunYoung deleted the crystal-rotation branch November 10, 2025 18:41
@github-project-automation github-project-automation Bot moved this from In progress to Done in Development Board Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants