-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Describe the bug
When changing modality parameters in vLab4Mic main notebook using myexperiment.update_modality(), the pixel size must be a value that is divisible by the psf voxel size, otherwise the acquisition preview does not load. Changing the psf voxel size to 1 does overcome this, but it takes too long to load even the acquisition preview to test this for full simulation.
To Reproduce
Steps to reproduce the behavior:
- Run Jupyter notebook vLab4Mic-main
- Load in structrue (e.g. 7R5K)
- Load in probe (e.g. NPC_Nup96_Cterminal_direct with defaults)
- Load in virtual sample paramters (e.g. 1 particle with no randomisation)
- Edit confocal modality using line:
my_experiment.update_modality("Confocal", 45, 170,340) - select confocal modality and update virtual microscope (toggle psf view should show: pixel size at 45 nm; lateral res at 170 nm; axial res at 340 nm; and depth of field at 1000 nm)
- Select acquisition parameters: confocal; select all chanels
- update acquisition parameters and select interactive acquisiont preview
- See error:
nothing shows up for the acquisition preview in this case.
Expected behavior
Expect to see a preview of the virtual sample with edited acquisition parameters at this stage.
Desktop (please complete the following information):
- OS: iOS
- Browser: Firefox
- Version: 145.0.2
Additional context
If you change the confocal modality voxel size parameter to a multiple of the pixel size, e.g. 15, replacing the code in step 5 with my_experiment.update_modality("Confocal", 45, 170,340,15), then a virtual sample preview will appear at step 9.