mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-13 12:00:16 +08:00
Fixes check of ticks in stddev, now that __len__ has been removed.
This commit is contained in:
@@ -147,7 +147,7 @@ class MovingStandardDevWindow(EventWindow):
|
||||
"""
|
||||
# Sample standard deviation is undefined for a single event or
|
||||
# no events.
|
||||
if len(self) <= 1:
|
||||
if len(self.ticks) <= 1:
|
||||
return None
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user