Skip to content

Commit

Permalink
Update system tests input scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiMacielPereira committed Jan 17, 2025
1 parent 35a22de commit 5f74952
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
12 changes: 11 additions & 1 deletion tests/data/analysis/inputs/analysis_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ class BackwardAnalysisInputs(SampleParameters):
do_gamma_correction = False


show_plots = False
do_symmetrisation = True
subtract_calculated_fse_from_data = False
range_for_rebinning_in_y_space = "-20, 0.5, 20" # Needs to be symetric
fitting_model = "SINGLE_GAUSSIAN"
run_minos = True
do_global_fit = None
number_of_global_fit_groups = 4
mask_zeros_with = None


class ForwardAnalysisInputs(SampleParameters):
run_this_scattering_type = True
fit_in_y_space = False
Expand Down Expand Up @@ -82,7 +93,6 @@ class ForwardAnalysisInputs(SampleParameters):
do_gamma_correction= True


class YSpaceFitInputs:
show_plots = False
do_symmetrisation = True
subtract_calculated_fse_from_data = False
Expand Down
4 changes: 2 additions & 2 deletions tests/data/analysis/inputs/yspace_gauss_test.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from tests.data.analysis.inputs.analysis_test import (
BackwardAnalysisInputs,
ForwardAnalysisInputs,
YSpaceFitInputs,
)
ForwardAnalysisInputs.fit_in_y_space = True
BackwardAnalysisInputs.fit_in_y_space = False
ForwardAnalysisInputs.run_this_scattering_type = True
BackwardAnalysisInputs.run_this_scattering_type = False
YSpaceFitInputs.fitting_model = "gauss"
ForwardAnalysisInputs.fitting_model = "gauss"
BackwardAnalysisInputs.fitting_model = "gauss"

if (__name__ == "__main__") or (__name__ == "mantidqt.widgets.codeeditor.execution"):
import mvesuvio
Expand Down
7 changes: 4 additions & 3 deletions tests/data/analysis/inputs/yspace_gc_test.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
from tests.data.analysis.inputs.analysis_test import (
BackwardAnalysisInputs,
ForwardAnalysisInputs,
YSpaceFitInputs,
)

ForwardAnalysisInputs.fit_in_y_space = True
BackwardAnalysisInputs.fit_in_y_space = False
ForwardAnalysisInputs.run_this_scattering_type = True
BackwardAnalysisInputs.run_this_scattering_type = False
YSpaceFitInputs.fitting_model = "gcc4c6"
YSpaceFitInputs.do_symmetrisation = False
ForwardAnalysisInputs.fitting_model = "gcc4c6"
ForwardAnalysisInputs.do_symmetrisation = False
BackwardAnalysisInputs.fitting_model = "gcc4c6"
BackwardAnalysisInputs.do_symmetrisation = False


if (__name__ == "__main__") or (__name__ == "mantidqt.widgets.codeeditor.execution"):
Expand Down

0 comments on commit 5f74952

Please sign in to comment.