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

nd2reader.py: superclass FramesSequenceND not initialized #23

Open
mitlabence opened this issue Jan 28, 2022 · 0 comments · May be fixed by #24
Open

nd2reader.py: superclass FramesSequenceND not initialized #23

mitlabence opened this issue Jan 28, 2022 · 0 comments · May be fixed by #24

Comments

@mitlabence
Copy link

mitlabence commented Jan 28, 2022

Upon initializing ND2_Reader as follows:

import pims_nd2
nik_file = pims_nd2.ND2_Reader("path-to-nikon-file/nikon_file.nd2")

A warning appears:

path-to-conda-environment\lib\site-packages\pims\base_frames.py:472: UserWarning: Please call FramesSequenceND.init() at the start of thethe reader initialization.

Proposed solution: initialize superclass in nd2reader.py (line 82):

def __init__(self, filename, series=0, channel=0):
        super().__init__() #Initialize superclass FramesSequenceND
        ...

Versions:
conda 4.11.0
python 3.8.12
PIMS 0.5
pims_nd2 1.1

@mitlabence mitlabence linked a pull request Jan 28, 2022 that will close this issue
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 a pull request may close this issue.

1 participant