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

Process multiple detector banks via param series #119

Merged
merged 7 commits into from
Apr 5, 2024
Merged

Conversation

SimonHeybrock
Copy link
Member

@SimonHeybrock SimonHeybrock commented Apr 2, 2024

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)

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'])
Copy link
Member

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?

Copy link
Member Author

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.

@SimonHeybrock
Copy link
Member Author

Will wait with merging until we can update to bugfix release of Sciline (for graph grouping).

@SimonHeybrock SimonHeybrock merged commit 8051614 into main Apr 5, 2024
3 checks passed
@SimonHeybrock SimonHeybrock deleted the det-banks branch April 5, 2024 04:43
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.

Load detectors separately and handle multiple detector banks
2 participants