Skip to content

A bug in manual label line 301 of "*\suite2p\Lib\site-packages\suite2p\gui\drawroi.py". #1209

@Pulee0019

Description

@Pulee0019

Describe the issue:

A code error in manual label line 301 of "*\suite2p\Lib\site-packages\suite2p\gui\drawroi.py".

Reproduce the code example:

In line 301 of "*\suite2p\Lib\site-packages\suite2p\gui\drawroi.py": settings["xrange"][1]] = self.parent.ops["meanImg"][ maybe ops["xrange"][1]] = self.parent.ops["meanImg"][

Example input dataset used to reproduce the issue:

No response

Error message:

Traceback (most recent call last):
  File "D:\APP\Anaconda\envs\suite2p\Lib\site-packages\suite2p\gui\menus.py", line 67, in <lambda>
    parent.manual.triggered.connect(lambda: manual_label(parent))
                                            ^^^^^^^^^^^^^^^^^^^^
  File "D:\APP\Anaconda\envs\suite2p\Lib\site-packages\suite2p\gui\menus.py", line 188, in manual_label
    MW = drawroi.ROIDraw(parent)
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\APP\Anaconda\envs\suite2p\Lib\site-packages\suite2p\gui\drawroi.py", line 220, in __init__
    self.masked_images = self.normalize_img_add_masks()
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\APP\Anaconda\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:

No response

Metadata

Metadata

Assignees

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