diff --git a/geomagio/algorithm/SpikesAlgorithm.py b/geomagio/algorithm/SpikesAlgorithm.py index f48262818e7d7a12907445c1afcca91d1aef8366..33133f455e7983cfe091612e396b2d60fb8de00c 100644 --- a/geomagio/algorithm/SpikesAlgorithm.py +++ b/geomagio/algorithm/SpikesAlgorithm.py @@ -77,6 +77,7 @@ class SpikesAlgorithm(MetadataAlgorithm): for trace in day_stream: timestamps = trace.times("UTCDateTime") signal = trace.data + # TODO: throw error if singal len < window! spike_timestamps = self._despike(signal, timestamps) if len(spike_timestamps) > 0: @@ -99,7 +100,7 @@ class SpikesAlgorithm(MetadataAlgorithm): status="New", ) - # Validate spikes match times + # validate spikes match times ArtificialDisturbance.check_spikes_match_times( spikes=metadata_dict["spikes"], values={ @@ -109,5 +110,7 @@ class SpikesAlgorithm(MetadataAlgorithm): ) spike_metadata_list.append(spike_metadata) + else: + pass return spike_metadata_list