DataLab-Platform / DataLab

Open-source Platform for Scientific and Technical Data Processing and Visualization
https://datalab-platform.com
BSD 3-Clause "New" or "Revised" License
43 stars 4 forks source link

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

Closed PierreRaybaut closed 3 months ago

PierreRaybaut commented 3 months ago

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'