Skip to content

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Fix run mapping functionality #212

wants to merge 12 commits into from

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?

@@ -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]] = (
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Selected
Development

Successfully merging this pull request may close these issues.

Broken workflows when using with_sample_runs and with_background_runs
2 participants