Skip to content

Load source metadata from nexus#170

Open
jl-wynen wants to merge 2 commits intomainfrom
load-more-metadata
Open

Load source metadata from nexus#170
jl-wynen wants to merge 2 commits intomainfrom
load-more-metadata

Conversation

@jl-wynen
Copy link
Member

@jl-wynen jl-wynen commented Mar 3, 2026

So far, we have been hard-coding the source in workflows that use it. But the coda nexus files now contain enough information to load this instead.

This will help with scipp/essdiffraction#100

@jl-wynen jl-wynen force-pushed the load-more-metadata branch from a9b50e6 to bea53d8 Compare March 4, 2026 08:29
@github-project-automation github-project-automation bot moved this to In progress in Development Board Mar 4, 2026
@jl-wynen jl-wynen moved this from In progress to Selected in Development Board Mar 4, 2026

Supplements the result with data from ``beamline`` if necessary.
"""
from scippneutron.metadata import RadiationProbe, SourceType
Copy link
Member

Choose a reason for hiding this comment

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

Any particualr reason for this inline import?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought I'd keep the scippneutron types hidden (as opposed to Source[T] which is defined in ESSreduce. But that should not be an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Selected

Development

Successfully merging this pull request may close these issues.

2 participants