diff --git a/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py b/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py index 18978cca77329c13e23e7c9ca642c02b870ee0a3..6d3d573830cdcda1ce45c384ea668a0ff7ac41d0 100644 --- a/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py +++ b/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py @@ -67,6 +67,7 @@ class HolographyDataset(): result = result and HolographyDataset.compare_dicts(dict1[key], dict2[key]) else: if isinstance(dict1[key], numpy.ndarray) and isinstance(dict2[key], numpy.ndarray): + # Compares element by element the two arrays return numpy.array_equal(dict1[key], dict2[key]) else: return dict1[key] == dict2[key] @@ -242,7 +243,7 @@ class HolographyDataset(): self.ra_dec[frequency_string] = dict() for beamlet in self.beamlets: beamlet_string = str(beamlet) - self.ra_dec[frequency_string][beamlet_string] = numpy.array( \ + self.ra_dec[frequency_string][beamlet_string] = numpy.array( virtual_pointing[(frequency, beamlet)], dtype=coordinate_type) @@ -251,7 +252,7 @@ class HolographyDataset(): # and does this only once since the coordinate will not change first_holography_observation = list_of_hbs_ho_tuples[0][1] first_ms = first_holography_observation.ms_for_a_given_beamlet_number.values()[0] - station_position, tile_offset, axes_coordinates = first_ms.\ + station_position, tile_offset, axes_coordinates = first_ms.\ get_station_position_tile_offsets_and_axes_coordinate_for_station_name( station_name) @@ -388,7 +389,7 @@ class HolographyDataset(): # Moan... Again this needs to be stored like that. f.attrs[HDS_SAS_ID] = numpy.array(self.sas_ids, - dtype = h5py.special_dtype(vlen = str)) + dtype = h5py.special_dtype(vlen=str)) f.attrs[HDS_TARGET_STATION_NAME] = self.target_station_name f.attrs[HDS_TARGET_STATION_POSITION] = self.target_station_position f.attrs[HDS_SOURCE_NAME] = self.source_name @@ -398,7 +399,7 @@ class HolographyDataset(): ('EPOCH', 'S10')]) f.attrs[HDS_SOURCE_POSITION] = numpy.array(self.source_position, - dtype = coordinate_type) + dtype=coordinate_type) f.attrs[HDS_OBSERVATION_TIME] = numpy.array([self.start_time, self.end_time]) f.attrs[HDS_ROTATION_MATRIX] = self.rotation_matrix f.attrs[HDS_ANTENNA_FIELD_POSITION] = self.antenna_field_position