diff --git a/tests/unit/test_tasks.py b/tests/unit/test_tasks.py index 9343bf5..4b1667c 100644 --- a/tests/unit/test_tasks.py +++ b/tests/unit/test_tasks.py @@ -487,12 +487,12 @@ def test_get_lesion_stats(self): self.assertEqual(0.5, lesion_stats['relative_T1_signal']) self.assertEqual(0.75, lesion_stats['relative_T2_signal']) self.assertEqual(1.25, lesion_stats['relative_ADC_signal']) - self.assertEqual(1.25, lesion_stats['mean_adc_signal']) - self.assertEqual(0.0, lesion_stats['min_adc_signal']) - self.assertEqual(1.5, lesion_stats['median_adc_signal']) - np.testing.assert_almost_equal(0.15, lesion_stats['five_percentile_adc_signal']) + self.assertEqual(1.25, lesion_stats['mean_ADC_signal']) + self.assertEqual(0.0, lesion_stats['min_ADC_signal']) + self.assertEqual(1.5, lesion_stats['median_ADC_signal']) + np.testing.assert_almost_equal(0.15, lesion_stats['five_percentile_ADC_signal']) np.testing.assert_almost_equal( - 2.0, lesion_stats['ninety_five_percentile_adc_signal'] + 2.0, lesion_stats['ninety_five_percentile_ADC_signal'] ) self.assertEqual(1.5, lesion_stats['relative_T1Post_signal']) self.assertEqual(1.0, lesion_stats['relative_FLAIR_signal']) @@ -836,9 +836,9 @@ def test_run(self): self.assertEqual(0.4375, lesion_stats['relative_T1_signal']) self.assertEqual(0.6875, lesion_stats['relative_T2_signal']) self.assertEqual(0.9375, lesion_stats['relative_ADC_signal']) - self.assertEqual(3.75, lesion_stats['mean_adc_signal']) - self.assertEqual(0.0, lesion_stats['min_adc_signal']) - self.assertEqual(4.5, lesion_stats['median_adc_signal']) + self.assertEqual(3.75, lesion_stats['mean_ADC_signal']) + self.assertEqual(0.0, lesion_stats['min_ADC_signal']) + self.assertEqual(4.5, lesion_stats['median_ADC_signal']) np.testing.assert_almost_equal(0.6, lesion_stats['five_percentile_ADC_signal']) np.testing.assert_almost_equal( lesion_stats['ninety_five_percentile_ADC_signal'], 5.85 @@ -878,9 +878,9 @@ def test_run(self): self.assertEqual(0.5, lesion_stats['relative_T1_signal']) self.assertEqual(0.75, lesion_stats['relative_T2_signal']) self.assertEqual(1.25, lesion_stats['relative_ADC_signal']) - self.assertEqual(5.0, lesion_stats['mean_adc_signal']) - self.assertEqual(4.0, lesion_stats['min_adc_signal']) - self.assertEqual(5.0, lesion_stats['median_adc_signal']) + self.assertEqual(5.0, lesion_stats['mean_ADC_signal']) + self.assertEqual(4.0, lesion_stats['min_ADC_signal']) + self.assertEqual(5.0, lesion_stats['median_ADC_signal']) self.assertEqual(1.5, lesion_stats['relative_T1Post_signal']) self.assertEqual(1.0, lesion_stats['relative_FLAIR_signal']) self.assertEqual(1.5, lesion_stats['enhancement'])