You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In quite a few scenarios one may want to merge some TsGroup (e.g. adding new neurons, merging PETH from different runs, etc.) but currently TsGroup is non-mutable:
Maybe this class method can be called by a simple method of TsGroup like this as well.
tsgroup=tsgroup1.join(tsgroup2)
In general I like to provide multiple ways of doing the same thing in pynapple. I noticed people have different intuition about how the package should behave.
In quite a few scenarios one may want to merge some TsGroup (e.g. adding new neurons, merging PETH from different runs, etc.) but currently TsGroup is non-mutable:
pynapple/pynapple/core/ts_group.py
Lines 149 to 151 in ea60357
Maybe we can add a method that takes two TsGroups and returns a new TsGroup when the following conditions are met:
Happy to initiate a pull request if people see a need for this.
The text was updated successfully, but these errors were encountered: