portugueslab / sashimi

Lightsheet control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when changing ROI size and activating noise subtraction

fedem-p opened this issue · comments

Expected Behavior

Possibility to set an ROI and activate subtract noise and then change the size of the ROI and activate again the subtract noise function as many times as needed

Current Behavior

When the ROI size changes and the subtract noise is activated sashimi crashes

Steps to Reproduce

in calib mode:

  1. set an ROI
  2. activate noise sub
  3. reset ROI
  4. activate noise sub again

Detailed Description

The problem seems to stem from the fact that the current_frame and self.calibration_ref have different sizes
which means that the self.calibration_ref isn't updated to the correct size.