From d0635c4a3c3602d774cc91f2c212092375389f02 Mon Sep 17 00:00:00 2001 From: thijs snijder <snijder@astron.nl> Date: Thu, 30 Sep 2021 15:48:23 +0200 Subject: [PATCH] changed the type of the statistics written to disk. SST is now flaot32, XST cflaot --- devices/statistics_writer/hdf5_writer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/statistics_writer/hdf5_writer.py b/devices/statistics_writer/hdf5_writer.py index 8d89258fe..5a5eb5ee3 100644 --- a/devices/statistics_writer/hdf5_writer.py +++ b/devices/statistics_writer/hdf5_writer.py @@ -144,11 +144,11 @@ class hdf5_writer: def write_sst_matrix(self, current_group): # store the SST values - current_group.create_dataset(name="sst_values", data=self.current_matrix.parameters["sst_values"]) + current_group.create_dataset(name="sst_values", data=self.current_matrix.parameters["sst_values"].astype(numpy.float32), compression="gzip") def write_xst_matrix(self, current_group): # requires a function call to transform the xst_blocks in to the right structure - current_group.create_dataset(name="xst_values", data=self.current_matrix.xst_values()) + current_group.create_dataset(name="xst_values", data=self.current_matrix.xst_values().astype(numpy.cfloat), compression="gzip") def write_bst_matrix(self, current_group): raise NotImplementedError("BST values not implemented") -- GitLab