Skip to content

Commit

Permalink
summary update
Browse files Browse the repository at this point in the history
  • Loading branch information
andped10 committed Nov 18, 2024
1 parent 2e45144 commit cdfcef1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
12 changes: 10 additions & 2 deletions src/easyreflectometry/summary/html_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,16 @@
<!-- <td>goodness_of_fit</td> -->
<!-- </tr> -->
<tr>
<td>No. of parameters: total, free, fixed</td>
<td>num_total_params, num_free_params, num_fixed_params</td>
<td>No. of parameters:</td>
<td>num_total_params</td>
</tr>
<tr>
<td>No. of free parameters:</td>
<td>num_free_params</td>
</tr>
<tr>
<td>No. of fixed parameters:</td>
<td>num_fixed_params</td>
</tr>
<tr>
<td>No. of constraints</td>
Expand Down
7 changes: 5 additions & 2 deletions tests/summary/test_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cdfcef1

Please sign in to comment.