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 ess.reduce.live, a module for building live reduction workflows #118

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

SimonHeybrock
Copy link
Member

This is a very early version, and I expect several cycles of additions and modifications. I am using this with so far 3 workflows in ESSsans, which has driven/informed what should go into this module. The live module uses the streaming module, but operates on a slightly higher level and is more tailored towards Beamlime.

Copy link
Member

@nvaytet nvaytet left a comment

Choose a reason for hiding this comment

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

Looks good, just one small comment.

# Beamlime passes full path, but the workflow only needs the name of the monitor
# or detector group.
nxevent_data = {
key.lstrip('/').split('/')[2]: value for key, value in nxevent_data.items()
Copy link
Member

Choose a reason for hiding this comment

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

Is there a less brittle way we can make a key without relying on the number 2?

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 think all NeXus files I have seen have monitors and detectors in /entry/instrument/<name>. Can't think of a simple option that will not be even more brittle. Let us fix it when it causes trouble?

@SimonHeybrock SimonHeybrock merged commit 8119f89 into main Oct 10, 2024
4 checks passed
@SimonHeybrock SimonHeybrock deleted the live-workflow branch October 10, 2024 14:01
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.

2 participants