Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on the morning of Tuesday 11th August 2020, starting at approximately 9am PDT. It is expected to take around 20 minutes and there will be a short period of downtime (less than five minutes) towards the end of the maintenance window. Please direct any comments, questions, or concerns to computing-help@ligo.org.

Commit 0b05f33b authored by Patrick Godwin's avatar Patrick Godwin

utils.py: switch dtype for features from numpy.float32 to float

parent fe63c6f1
Pipeline #67722 passed with stages
in 32 minutes and 12 seconds
......@@ -273,7 +273,7 @@ class HDF5TimeseriesFeatureData(FeatureData):
self.sample_rate = kwargs['sample_rate']
self.waveform = kwargs['waveform']
self.metadata = dict(**kwargs)
self.dtype = [(column, numpy.float32) for column in self.columns]
self.dtype = [(column, 'float') for column in self.columns]
self.feature_data = {key: numpy.empty((self.cadence * self.sample_rate,), dtype = self.dtype) for key in keys}
self.last_save_time = 0
self.clear()
......@@ -322,7 +322,7 @@ class HDF5ETGFeatureData(FeatureData):
self.cadence = kwargs['cadence']
self.waveform = kwargs['waveform']
self.metadata = dict(**kwargs)
self.dtype = [(column, numpy.float32) for column in self.columns]
self.dtype = [(column, 'float') for column in self.columns]
self.feature_data = {key: [] for key in keys}
self.clear()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment