From fbade9fb94fdc7f4570ceda21a6e9c5e9f9f4b6f Mon Sep 17 00:00:00 2001
From: Patrick Godwin <patrick.godwin@ligo.org>
Date: Mon, 17 Jun 2019 13:05:53 -0700
Subject: [PATCH] feature_extractor.py: remove unused imports, utils.py: switch
 feature dtype from double to single precision float

---
 gstlal-burst/python/fxtools/feature_extractor.py | 3 ---
 gstlal-burst/python/fxtools/utils.py             | 4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/gstlal-burst/python/fxtools/feature_extractor.py b/gstlal-burst/python/fxtools/feature_extractor.py
index f697a2b624..fdb37fa199 100644
--- a/gstlal-burst/python/fxtools/feature_extractor.py
+++ b/gstlal-burst/python/fxtools/feature_extractor.py
@@ -35,9 +35,6 @@ import StringIO
 import threading
 import shutil
 
-import h5py
-import numpy
-
 import gi
 gi.require_version('Gst', '1.0')
 from gi.repository import GObject, Gst
diff --git a/gstlal-burst/python/fxtools/utils.py b/gstlal-burst/python/fxtools/utils.py
index 3bc4016aca..e5304efe26 100644
--- a/gstlal-burst/python/fxtools/utils.py
+++ b/gstlal-burst/python/fxtools/utils.py
@@ -273,7 +273,7 @@ class HDF5TimeseriesFeatureData(FeatureData):
 		self.sample_rate = kwargs['sample_rate']
 		self.waveform = kwargs['waveform']
 		self.metadata = dict(**kwargs)
-		self.dtype = [(column, '<f8') for column in self.columns]
+		self.dtype = [(column, numpy.float32) 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, '<f8') for column in self.columns]
+		self.dtype = [(column, numpy.float32) for column in self.columns]
 		self.feature_data = {key: [] for key in keys}
 		self.clear()
 
-- 
GitLab