We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7264008 commit f78efcaCopy full SHA for f78efca
tests/functional_tests/fitting/test_powder-diffraction_multiphase.py
@@ -56,6 +56,9 @@ def test_single_fit_neutron_pd_tof_mcstas_lbco_si() -> None:
56
project.sample_models.add(model_2)
57
project.experiments.add(expt)
58
59
+ # Exclude regions from fitting
60
+ project.experiments['mcstas'].excluded_regions.add(minimum=108000, maximum=200000)
61
+
62
# Prepare for fitting
63
project.analysis.current_calculator = 'cryspy'
64
project.analysis.current_minimizer = 'lmfit (leastsq)'
@@ -84,7 +87,7 @@ def test_single_fit_neutron_pd_tof_mcstas_lbco_si() -> None:
84
87
85
88
# Compare fit quality
86
89
assert_almost_equal(project.analysis.fit_results.reduced_chi_square,
- desired=1.79, # 2.87
90
+ desired=2.87,
91
decimal=1)
92
93
0 commit comments