andreabassi78 / napari-psf-simulator

widget for PSF simulation with aberrations
BSD 3-Clause "New" or "Revised" License
26 stars 1 forks source link

first generated psf is not centered #3

Closed micropolimi closed 2 years ago

micropolimi commented 2 years ago

The very first generated psf is not centered and it's and the airy disk in not visible. It's centered instead from the second execution. It'd be nice to align this

andreabassi78 commented 2 years ago

Can't reproduce the error. What version of the plugin are you using and what's your napari version? Thanks

micropolimi commented 2 years ago

napari 0.4.14 napari-psf-simulator 0.1.4

andreabassi78 commented 2 years ago

Ok, it looks like that the viewer.dims class has been modified recently. I'm having a similar problem using viewer.dims.point(), which gives inconsistent results with different napari versions. I'll search for the recommended usage. Please write here if you have any ideas.

andreabassi78 commented 2 years ago

Hi @micropolimi, I added this line to reset the view. The issue is solved for napari-psf-simulator >=0.1.5 Due to a previous issue in napari, the new change raises an error if napari <0.4.13 is installed. Considering that you many users are updating napari regularly, this point can be considered a minor issue. I am closing the issue