Skip to content

Conversation

@9sdv
Copy link
Contributor

@9sdv 9sdv commented Jul 3, 2017

I've found it convenient to add some wrapper sequences to assist with analysis. Not sure if these should go in sequences.py or some where else

SplicedSequences are useful for looking through a non-consecutive subset of frames of the base sequence (IndexedSequence seems to require a slice). For example when looking through frames identified as having possible motion correction errors.

NaNMean and Sequences are useful for collapsing 3D data to a single plane for visualization or further analysis

# Not sure if np.copy is needed here (see _IndexedSequence)
yield np.copy(self._base._get_frame(t))
except NotImplementedError:
if self._indices[0].step < 0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure where the self._indices comes from.
What about if np.any(np.diff(self._times) <= 0): ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I *think this was copied in error over from indexed sequence. I can clean up the logic and then resubmit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants