-
Notifications
You must be signed in to change notification settings - Fork 3
Fix run mapping functionality #212
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
Changes from all commits
4e8e3a0
9e64ef1
dbe6701
9c223c3
e385213
fe57ac7
03a07fd
5fa9cc9
6002f26
c16e87c
3ffad5a
c09c0e2
3a469af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,6 @@ | |
| from . import common, conversions, i_of_q, masking, normalization | ||
| from .types import ( | ||
| BackgroundRun, | ||
| CleanSummedQ, | ||
| CorrectForGravity, | ||
| Denominator, | ||
| DetectorBankSizes, | ||
|
|
@@ -30,6 +29,7 @@ | |
| TransmissionRun, | ||
| WavelengthBands, | ||
| WavelengthMask, | ||
| WavelengthScaledQ, | ||
| ) | ||
|
|
||
|
|
||
|
|
@@ -99,8 +99,8 @@ def _set_runs( | |
| pipeline = pipeline.copy() | ||
| runs = pd.DataFrame({Filename[key]: runs}).rename_axis(axis_name) | ||
| for part in (Numerator, Denominator): | ||
| pipeline[CleanSummedQ[key, part]] = ( | ||
| pipeline[CleanSummedQ[key, part]] | ||
| pipeline[WavelengthScaledQ[key, part]] = ( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| pipeline[WavelengthScaledQ[key, part]] | ||
| .map(runs) | ||
| .reduce(index=axis_name, func=merge_contributions) | ||
| ) | ||
|
|
||
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 it be because multi-threading is also used internally by Mantid when it is loading the data?
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.
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.