From cdfcef11c2946e140b6d9d84252df800fc977995 Mon Sep 17 00:00:00 2001 From: Andreas Pedersen Date: Mon, 18 Nov 2024 15:13:39 +0100 Subject: [PATCH] summary update --- src/easyreflectometry/summary/html_templates.py | 12 ++++++++++-- tests/summary/test_summary.py | 7 +++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/easyreflectometry/summary/html_templates.py b/src/easyreflectometry/summary/html_templates.py index 999d3e73..c5052c6f 100644 --- a/src/easyreflectometry/summary/html_templates.py +++ b/src/easyreflectometry/summary/html_templates.py @@ -122,8 +122,16 @@ - No. of parameters: total, free, fixed - num_total_params, num_free_params, num_fixed_params + No. of parameters: + num_total_params + + + No. of free parameters: + num_free_params + + + No. of fixed parameters: + num_fixed_params No. of constraints diff --git a/tests/summary/test_summary.py b/tests/summary/test_summary.py index 29f7be38..005b306d 100644 --- a/tests/summary/test_summary.py +++ b/tests/summary/test_summary.py @@ -148,6 +148,9 @@ def test_refinement_section(self, project: Project) -> None: # Expect assert 'refnx' in html assert 'LMFit_leastsq' in html - assert 'total, free, fixed' in html - assert '14, 0, 14' in html + assert 'No. of parameters:' in html + assert 'No. of fixed parameters:' in html + assert '14' in html + assert 'No. of free parameters:' in html + assert '0' in html assert 'No. of constraints' in html