Skip to content
Snippets Groups Projects
Commit 19e676d9 authored by pswain's avatar pswain
Browse files

bug(grouper): tinterval failing with arrays

parent f2f8d3e3
No related branches found
Tags v12.1.7
No related merge requests found
...@@ -49,7 +49,7 @@ class Grouper(ABC): ...@@ -49,7 +49,7 @@ class Grouper(ABC):
def tinterval(self) -> float: def tinterval(self) -> float:
"""Find the time interval for all positions.""" """Find the time interval for all positions."""
tintervals = list( tintervals = list(
set([s.tinterval / 60 for s in self.positions.values()]) np.unique([s.tinterval / 60 for s in self.positions.values()])
) )
assert ( assert (
len(tintervals) == 1 len(tintervals) == 1
......
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