You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Summary report figures show only experiment 0 #433
Problem. The summary report shows these for the last recorded fit:
the total goodness of fit, over every fitted dataset;
the free-parameter count of that fit;
the parameters of every model.
The figures, however, still draw only the first experiment and the first model. With three contrasts fitted jointly, the report gives a pooled χ² for all three but plots one curve and one SLD profile.
This is pre-existing: the figures always used index 0. It is not a regression from PR #432. But a multi-contrast report is now possible, and its figures don't match its numbers.
Where:src/easyreflectometry/summary/summary.py:
_measured_series: experimental_data_for_model_at_index(0) and experiment_channels_at_index(0).
save_sld_plot and _sld_plotly_figure: sld_data_for_model_at_index(0).
save_fit_experiment_plot and the interactive reflectivity figure, which build on the two helpers above.
Proposed.
Reflectivity figure: one measured series and one calculated curve per experiment, each in its model's color. Polarized experiments keep one series per channel. Optionally stagger the experiments, as the app's Analysis chart does.
SLD figure: one profile per model.
Which experiments to draw: those in last_fit.inputs when a run is recorded (the report then describes that fit), otherwise every experiment.
Static (PDF) and interactive (HTML) paths should share the same series list.
Activity
433 summary figures (#447)
Release 2.0.0 (#454)