Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
d764c5c256
@ -157,7 +157,7 @@ class SurveillanceBot(object):
|
|||||||
if filename in self.filenames_read:
|
if filename in self.filenames_read:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
st_new = read(filename)
|
st_new = read(filename, dtype=float)
|
||||||
# add file to read filenames to prevent re-reading in case it is not the current day (or end of
|
# add file to read filenames to prevent re-reading in case it is not the current day (or end of
|
||||||
# previous day)
|
# previous day)
|
||||||
if not filename.endswith(f'{current_day:03}') and not (
|
if not filename.endswith(f'{current_day:03}') and not (
|
||||||
@ -167,7 +167,7 @@ class SurveillanceBot(object):
|
|||||||
print(f'Could not read file {filename}:', e)
|
print(f'Could not read file {filename}:', e)
|
||||||
continue
|
continue
|
||||||
self.dataStream += st_new
|
self.dataStream += st_new
|
||||||
self.dataStream.merge()
|
self.dataStream.merge(fill_value=np.nan)
|
||||||
|
|
||||||
# organise data in dictionary with key for each station
|
# organise data in dictionary with key for each station
|
||||||
for trace in self.dataStream:
|
for trace in self.dataStream:
|
||||||
|
Loading…
Reference in New Issue
Block a user