Skip to content

Commit

Permalink
Remove test_error_mode_rits, covered by more detailed test
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc committed Dec 4, 2023
1 parent b0c34e8 commit 4504509
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions mantidimaging/gui/windows/spectrum_viewer/test/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,19 +242,6 @@ def test_save_rits_data_errors(self, _, error_mode, expected_error):
calculated_errors = mock_export.call_args[0][3]
np.testing.assert_allclose(expected_error, calculated_errors, atol=1e-4)

@parameterized.expand([("standard_deviation", ErrorMode.STANDARD_DEVIATION), ("propagated", ErrorMode.PROPAGATED)])
def test_error_mode_rits(self, _, error_mode):
stack, _ = self._set_sample_stack(with_tof=True)
norm = ImageStack(np.ones([10, 11, 12]))
stack.data[:, :, :6] *= 2
stack.data[:, :, 6:] *= 4
self.model.set_new_roi("rits_roi")
self.model.set_normalise_stack(norm)

mock_stream, mock_path = self._make_mock_path_stream()
with mock.patch("mantidimaging.gui.windows.spectrum_viewer.SpectrumViewerWindowModel.save_roi_coords"):
self.model.save_rits(mock_path, True, error_mode)

def test_invalid_error_mode_rits(self):
stack, _ = self._set_sample_stack(with_tof=True)
norm = ImageStack(np.ones([10, 11, 12]))
Expand Down

0 comments on commit 4504509

Please sign in to comment.