Skip to content

Image average profile extraction: AttributeError when trying to edit profile parameters #87

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

Closed
PierreRaybaut opened this issue Jul 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@PierreRaybaut
Copy link
Contributor

To Reproduce
Steps to reproduce the behavior:

  1. Open an image
  2. Click on "Operations" > "Intensity profiles" > "Average profile"
  3. Select a rectangular area
  4. Validate the dialog
  5. Repeat Step 2.
  6. Click on "Edit profile parameters" button at the bottom of the dialog
  7. This raises an exception (see traceback below)

Installation information

DataLab <=V0.16.2

Additional context
Console output:

Traceback (most recent call last):
  File "C:\Dev\Projets\DataLab\cdl\core\gui\profiledialog.py", line 248, in edit_values
    self.shape_to_param(self.shape, p)
  File "C:\Dev\Projets\DataLab\cdl\core\gui\profiledialog.py", line 218, in shape_to_param
    x1, y1, x2, y2 = shape.get_rect()
                     ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_rect'
@PierreRaybaut PierreRaybaut added the bug Something isn't working label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant