Skip to content

BUG: Manual labelling not opening in Version: 1.0.0.1 #1240

@ElsaOakes

Description

@ElsaOakes

Describe the issue:

I have just installed the newest version of Suite2p. I have processed a recording and opened the stat.npy file successfully however, when I try and open the manual labelling function from the GUI (File -> Manual labelling) no window opens and I get the following error.

Example input dataset used to reproduce the issue:

No response

Error message:

Traceback (most recent call last):
  File "C:\Users\lab\.conda\envs\suite2p\Lib\site-packages\suite2p\gui\menus.py", line 67, in <lambda>
    parent.manual.triggered.connect(lambda: manual_label(parent))
                                            ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\lab\.conda\envs\suite2p\Lib\site-packages\suite2p\gui\menus.py", line 191, in manual_label
    MW = drawroi.ROIDraw(parent)
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\lab\.conda\envs\suite2p\Lib\site-packages\suite2p\gui\drawroi.py", line 220, in __init__
    self.masked_images = self.normalize_img_add_masks()
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\lab\.conda\envs\suite2p\Lib\site-packages\suite2p\gui\drawroi.py", line 301, in normalize_img_add_masks
    settings["xrange"][1]] = self.parent.ops["meanImg"][
    ^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'settings'

Version information:

suite2p v1.0.0.1

Context for the issue:

This is currently preventing me from using the most updated version of suite2p for my analysis despite the ROI output being superior to previous versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions