Skip to content
Snippets Groups Projects
Commit 0dcdead5 authored by Erin (Josh) Rigler's avatar Erin (Josh) Rigler
Browse files

Use self.observatories to determine number of inputs

Previously use the number of traces in the input Stream. This could
be fewer than the number of desired observatories if a given input's
data was completely missing.
parent c946f502
No related branches found
No related tags found
1 merge request!196specify interval over which min_count is applied to AverageAlgorithm
...@@ -122,7 +122,7 @@ class AverageAlgorithm(Algorithm): ...@@ -122,7 +122,7 @@ class AverageAlgorithm(Algorithm):
self.outlocation = self.outlocation or timeseries[0].stats.location self.outlocation = self.outlocation or timeseries[0].stats.location
self.min_count = self.min_count or len(timeseries) self.min_count = self.min_count or len(self.observatories)
self.min_count_start = self.min_count_start or timeseries[0].stats.starttime self.min_count_start = self.min_count_start or timeseries[0].stats.starttime
self.min_count_end = self.min_count_end or timeseries[0].stats.endtime self.min_count_end = self.min_count_end or timeseries[0].stats.endtime
......
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