Skip to content

Support Qxy in run mapping #220

@SimonHeybrock

Description

@SimonHeybrock

Currently we are only applying map/reduce for WavelengthScaledQ:

def _set_runs(
pipeline: sciline.Pipeline, runs: Iterable[str], key: Hashable, axis_name: str
) -> sciline.Pipeline:
pipeline = pipeline.copy()
runs = pd.DataFrame({Filename[key]: runs}).rename_axis(axis_name)
for part in (Numerator, Denominator):
pipeline[WavelengthScaledQ[key, part]] = (
pipeline[WavelengthScaledQ[key, part]]
.map(runs)
.reduce(index=axis_name, func=merge_contributions)
)
return pipeline

This should be extended to also apply the equivalent to the WavelengthScaledQxy branch of the graph.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions