Skip to content
Snippets Groups Projects
Commit caa37970 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Make sure EdgeFactory uses i4 data type before conversion to float

parent 6e53da8a
No related branches found
No related tags found
No related merge requests found
...@@ -460,6 +460,9 @@ class EdgeFactory(TimeseriesFactory): ...@@ -460,6 +460,9 @@ class EdgeFactory(TimeseriesFactory):
type, interval) type, interval)
data = self.client.get_waveforms(network, station, location, data = self.client.get_waveforms(network, station, location,
edge_channel, starttime, endtime) edge_channel, starttime, endtime)
# make sure data is 32bit int
for trace in data:
trace.data = trace.data.astype('i4')
data.merge() data.merge()
if data.count() == 0: if data.count() == 0:
data += TimeseriesUtility.create_empty_trace( data += TimeseriesUtility.create_empty_trace(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment