Skip to content

nd2reader.py: superclass FramesSequenceND not initialized #23

Open
@mitlabence

Description

@mitlabence

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions