Skip to content

Conversation

@SimonHeybrock
Copy link
Member

@SimonHeybrock SimonHeybrock commented Aug 26, 2024

The recent additions in #78 have mostly been moved into ESSreduce. We can thus remove them here, and forward to ESSreduce.

Also renamed EmptyCanRun->BackgroundRun and EmptyInstrumentRun->EmptyBeamRun. While we do not have actual scientist feedback on this I think using common names is important. I expect some future back and forth on the actual names (e.g., is BackgroundRun a good name?), but I hope that can be a global discussion across techniques, i.e., we would rename the types in ESSreduce in that case.

The Geant4 loader sees some small changes, partially relying on the providers from the NeXus workflow, but overriding some details.

Depends on an releases of scipp/essreduce#81, CI here will fail for now.

@SimonHeybrock SimonHeybrock requested a review from jl-wynen August 26, 2024 09:10
assert sc.identical(result.coords['dspacing'], params[DspacingBins])
assert sc.allclose(result.coords['two_theta'], params[TwoThetaBins])
assert sc.identical(result.coords['dspacing'], workflow.compute(DspacingBins))
assert sc.allclose(result.coords['two_theta'], workflow.compute(TwoThetaBins))
Copy link
Member

Choose a reason for hiding this comment

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

I prefer the old implementation because if checks that the workflow respects the parameters. The new tests only check that the workflow's outputs are consistent.

Copy link
Member Author

Choose a reason for hiding this comment

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

Refactored, see update.

SimonHeybrock and others added 3 commits August 26, 2024 13:09
Co-authored-by: Jan-Lukas Wynen <jan-lukas.wynen@ess.eu>
@SimonHeybrock SimonHeybrock merged commit e189c66 into main Aug 26, 2024
@SimonHeybrock SimonHeybrock deleted the use-ess-reduce-nexus-workflow branch August 26, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants