diff --git a/CAL/CalibrationCommon/test/t_holography_dataset_class.py b/CAL/CalibrationCommon/test/t_holography_dataset_class.py index 922430bf1e057aff0c2b508e3e4cf81969f69690..9bbb258d2c93f91ea2509042736fb96ea9cda0e8 100755 --- a/CAL/CalibrationCommon/test/t_holography_dataset_class.py +++ b/CAL/CalibrationCommon/test/t_holography_dataset_class.py @@ -15,25 +15,24 @@ path_to_test_data = '/var/tmp/holography' path_to_test_dataset = path_to_test_data + '/CS001HBA0.hdf5' -def _does_test_data_exist(): +def _is_test_data_missing(): return not os.path.exists(path_to_test_data) - class TestHolographyDatasetClass(unittest.TestCase): - @unittest.skipIf(_does_test_data_exist(), 'test data is missing please check documentation') + @unittest.skipIf(_is_test_data_missing(), 'test data is missing please check documentation') def test_create_hds(self): ''' Reads a Measurement Set from a file and converts it to an HDS. - ''' + ''' # Read the MS into memory. holist = list_observations_in_path(path_to_test_data) hbsflist = list_bsf_files_in_path(path_to_test_data) for hbsf in hbsflist: hbsf.read_file() ho_per_ms = [(hbsf, ho) for hbsf, ho in zip(hbsflist, holist)] - + # Now create the Holography Data Set in memory from the MS data. holography_dataset = HolographyDataset() holography_dataset.load_from_beam_specification_and_ms(