From 12b89f31419ed4b93ad99debd0b3f4c831f9577e Mon Sep 17 00:00:00 2001 From: Mattia Mancini <mancini@astron.nl> Date: Tue, 25 Sep 2018 12:36:13 +0000 Subject: [PATCH] SSB-42: set default value to -999999.9 --- .../lib/datacontainers/holography_measurementset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CAL/CalibrationCommon/lib/datacontainers/holography_measurementset.py b/CAL/CalibrationCommon/lib/datacontainers/holography_measurementset.py index 1fd95230ff4..5a624c66a93 100644 --- a/CAL/CalibrationCommon/lib/datacontainers/holography_measurementset.py +++ b/CAL/CalibrationCommon/lib/datacontainers/holography_measurementset.py @@ -173,9 +173,9 @@ class HolographyMeasurementSet(object): n_polarizations], order='F') flags = flags.reshape([n_reference_stations, n_timestamps], order='F') - - beams_crosscorrelations_array = numpy.empty([n_reference_stations, n_timestamps], - dtype = data_sample_type) + beams_crosscorrelations_array = numpy.full([n_reference_stations, n_timestamps], + fill_value=-999999.9, + dtype = data_sample_type) for reference_station_index, reference_station_name in enumerate(reference_stations): beams_crosscorrelations_array[reference_station_index, :]['t'] = timestamps -- GitLab