soft-matter / pims_nd2

Python nd2 reader based on the ND2 SDK
Other
16 stars 8 forks source link

nd2reader.py: superclass FramesSequenceND not initialized #23

Open mitlabence opened 2 years ago

mitlabence commented 2 years ago

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