Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New sequences #235

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

New sequences #235

wants to merge 3 commits into from

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