-
Notifications
You must be signed in to change notification settings - Fork 2
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
Process multiple detector banks via param series #119
Conversation
Needs bugfix release of Sciline with scipp/sciline#150. [no ci]
pipeline = sciline.Pipeline(loki_providers_no_beam_center_finder(), params=params) | ||
pipeline[BeamCenter] = _compute_beam_center() | ||
pipeline.set_param_series(PixelMaskFilename, ['mask_new_July2022.xml']) | ||
pipeline.set_param_series(NeXusDetectorName, ['larmor_detector']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also use e.g. twice the same bank, as I believe for now, only the
if len(data) == 1:
return data[0]
code branch is being tested, which is a special case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately we cannot, since for a param series the index is the same as the values, and the index must be unique. We could change everything to a param table, introducing an extra type for the row index.
Note that the other branch (of the helper function) is tested by the run-merge. But I agree that this is not ideal. I will try to write a unit test just for the merge function.
Will wait with merging until we can update to bugfix release of Sciline (for graph grouping). |
Fixes #83.
I could have done the bank and run merge in a single step. Currently it is not clear which option is better in terms of parallelism and memory use, this has to be explored in the future.
Needs bugfix release of Sciline with scipp/sciline#150.(done)