From fb263549c96710b09ea2bf2215f773d5ac4f7087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20J=C3=BCrges?= <jurges@astron.nl> Date: Wed, 19 Sep 2018 14:58:14 +0000 Subject: [PATCH] Task SSB-42: RA, DEC are stored in a tuple --- .../lib/datacontainers/holography_dataset.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py b/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py index 65a4731738c..da55c612eb7 100644 --- a/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py +++ b/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py @@ -334,11 +334,13 @@ class HolographyDataset(): # Data tables f[self.HDS_REFERENCE_STATION] = numpy.array(self.reference_stations, - dtype=h5py.special_dtype(vlen = str)) + dtype = h5py.special_dtype(vlen = str)) f[self.HDS_FREQUENCY] = self.frequencies - f[self.HDS_RA_DEC] = self.ra_dec + ra_dec_type = numpy.dtype([('RA', numpy.float64), + ('DEC', numpy.float64)]) + f[self.HDS_RA_DEC] = numpy.array(self.ra_dec, dtype = ra_dec_type) sample_type = numpy.dtype([ ('XX', numpy.complex64), -- GitLab