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

WIP: Split ImageSequence into a reader per backend. #186

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danielballan
Copy link
Member

This is still a work in progress. Just pushing so I don't lose or forget about this old work.

@caspervdw caspervdw mentioned this pull request Oct 15, 2015
@caspervdw
Copy link
Member

What's your opinion on splitting the two changes:

  • make PIL/scipy optional
  • reduce the number of kwargs

Then we can first fix the deps, and then break the API in 0.4

We could do all the import-checks inside utils and make use of them throughout pims (for instance in display.py there is also a PIL and mpl dependency)

@@ -225,7 +265,7 @@ def filename_to_indices(filename, identifiers='tzc'):
return result


class ImageSequenceND(FramesSequenceND, ImageSequence):
class ImageSequenceND(FramesSequenceND, BaseImageSequence):
Copy link
Member

Choose a reason for hiding this comment

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

I think it makes sense to make this BaseImageSequenceND

@tacaswell tacaswell marked this pull request as draft April 7, 2022 20:37
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