Open narykov opened 1 month ago
Seems to be a limitation of deque that states length limiter use. Work around for now would be to use track_slice = list(next(iter(tracks)))[1:]
If all you want to do is [1:]
this would be most performant I think track_slice = next(iter(tracks)).states.copy(); track_slice.popleft()
I'd like to use the
StatesLengthLimiter
wrapper for track initiation when processing a longer dataset. However, when I try slicing the resulting track, I receive this error:An example based on '09Initiators&_Deleters.py' is provided here. The wrapper definition is on line 173 and slicing is attempted on line 213. When the wrapper definition is suppressed, the error is not showing up and the track slicing works OK.