Skip to content

Commit

Permalink
Adding bypass_check to to_tsGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
gviejo committed Apr 1, 2024
1 parent b5ee67c commit e4ebec2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pynapple/core/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,7 @@ def to_tsgroup(self):
TsGroup
Grouped timestamps
"""
ts_group = importlib.import_module(".ts_group", "pynapple.core")
t = self.index.values
Expand All @@ -1222,7 +1223,9 @@ def to_tsgroup(self):
for k in idx:
group[k] = Ts(t=t[d == k], time_support=self.time_support)

return ts_group.TsGroup(group, time_support=self.time_support)
return ts_group.TsGroup(
group, time_support=self.time_support, bypass_check=True
)

def save(self, filename):
"""
Expand Down

0 comments on commit e4ebec2

Please sign in to comment.