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

fix: add associated monitor workspace to data workspace #125

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

jokasimr
Copy link
Contributor

This change makes the ISISSans workflow able to handle files with periods.
Annika has such files where the data is separated into periods based on polarization settings.

@jokasimr jokasimr requested a review from SimonHeybrock April 12, 2024 12:49
Comment on lines 356 to 357
Period = NewType('Period', int)
"""Period number."""
Copy link
Member

Choose a reason for hiding this comment

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

Periods are an ISIS thing, this should only be defined in that submodule.

@@ -106,6 +115,13 @@ def load_run(filename: FilePath[Filename[RunType]]) -> DataWorkspace[RunType]:
else:
# Separate data and monitor workspaces
data_ws = loaded.OutputWorkspace
if isinstance(data_ws, _mantid_api.WorkspaceGroup):
if period is None:
raise ValueError('Needs period to know what section to load')
Copy link
Member

Choose a reason for hiding this comment

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

Could be more specific about which parameter needs to be set.

@jokasimr jokasimr merged commit ad699c5 into main Apr 15, 2024
3 checks passed
@jokasimr jokasimr deleted the fix-add-monitors branch April 15, 2024 10:08
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