From fc64239c885f02290448d046b9c52b27c705ecde Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Tue, 6 Dec 2022 16:34:08 +0100 Subject: [PATCH] don't analysis values of data gaps when cheching for thresholds. use stream.merge(fill_value=np.nan) --- survBot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/survBot.py b/survBot.py index 5f8e79d..ce1f057 100755 --- a/survBot.py +++ b/survBot.py @@ -157,7 +157,7 @@ class SurveillanceBot(object): if filename in self.filenames_read: continue 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 # previous day) 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) continue self.dataStream += st_new - self.dataStream.merge() + self.dataStream.merge(fill_value=np.nan) # organise data in dictionary with key for each station for trace in self.dataStream: