Skip to content

Conversation

@SimonHeybrock
Copy link
Member

Fixes #211.

Note

But this poses the question why the implementation prior to #163 computed the transmission fraction as it does, on a per-run basis. Wouldn't there be less noise (when using transmission from sample run) if we summed each monitor before computing TransmissionFraction?

This is not addressed in this PR. Is this something that needs fixing?

for part in (Numerator, Denominator):
pipeline[CleanSummedQ[key, part]] = (
pipeline[CleanSummedQ[key, part]]
pipeline[WavelengthScaledQ[key, part]] = (
Copy link
Member

@nvaytet nvaytet Jun 4, 2025

Choose a reason for hiding this comment

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

I guess my only question is: did the results change at all after this modification?

Copy link
Member Author

@SimonHeybrock SimonHeybrock Jun 6, 2025

Choose a reason for hiding this comment

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

Before this fix it either did not work, or the monitor term from a single run was used for all, i..e, it should be different.

SimonHeybrock and others added 7 commits June 6, 2025 06:40
Co-authored-by: Jan-Lukas Wynen <j-l.wynen@hotmail.de>
Co-authored-by: Jan-Lukas Wynen <j-l.wynen@hotmail.de>
Co-authored-by: Jan-Lukas Wynen <j-l.wynen@hotmail.de>
Filename=str(filename), LoadMonitors=True, StoreInADS=False
)
# Loading many small files with Mantid is, for some reason, very slow when using
# the default number of threads in the Dask threaded scheduler (1 thread worked
Copy link
Member

Choose a reason for hiding this comment

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

Can it be because multi-threading is also used internally by Mantid when it is loading the data?

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 I checked when I first wrote this (note this code and comment was simply moved in this PR). I don't think so.

@SimonHeybrock SimonHeybrock enabled auto-merge June 11, 2025 03:09
@SimonHeybrock SimonHeybrock merged commit 5876959 into main Jun 11, 2025
4 checks passed
@SimonHeybrock SimonHeybrock deleted the fix-run-mapping branch June 11, 2025 03:37
@github-project-automation github-project-automation bot moved this from Selected to Done in Development Board Jun 11, 2025
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.

Broken workflows when using with_sample_runs and with_background_runs

3 participants