bliss does not update lima_simulator.camera.frame_dim if flint has been opened before
If I open flint() before changing the frame_dim of the lima_simulator.camera, it does not update the array, even if you close flint and start again.
DEMO_SESSION [1]: flint()
WARNING: Flint starting...
Current Flint PID: 926184
Out [1]: <bliss.flint.client.proxy.FlintClient object at 0x7f47f080ceb0>
DEMO_SESSION [2]: ct()
ct: state elapsed
DONE 1s
acq_time = 1.00052 s ( 1.00052 s/s) lima_simulator
fwhm_x = 99.0476 px ( 99.0476 px/s) lima_simulator
fwhm_y = 99.0476 px ( 99.0476 px/s) lima_simulator
intensity = 99.2000 ( 99.2000 /s) lima_simulator
x = 512.000 px ( 512.000 px/s) lima_simulator
y = 512.000 px ( 512.000 px/s) lima_simulator
Out [2]: Scan(name=ct, path='not saved')
DEMO_SESSION [3]:
DEMO_SESSION [3]:
DEMO_SESSION [3]:
DEMO_SESSION [3]: lima_simulator.camera.frame_dim = (2068,2162,4)
DEMO_SESSION [4]: ct()
ct: state elapsed
DONE 2s
acq_time = 1.00220 s ( 1.00220 s/s) lima_simulator
fwhm_x = 0.00000 px ( 0.00000 px/s) lima_simulator
fwhm_y = 12.6393 px ( 12.6393 px/s) lima_simulator
intensity = 34.8000 ( 34.8000 /s) lima_simulator
x = -1.00000 px ( -1.00000 px/s) lima_simulator
y = 915.797 px ( 915.797 px/s) lima_simulator
Out [4]: Scan(name=ct, path='not saved')
DEMO_SESSION [5]: flint()
WARNING: Flint starting...
Current Flint PID: 926985
Out [5]: <bliss.flint.client.proxy.FlintClient object at 0x7f47f080ceb0>
DEMO_SESSION [6]: ct()
ct: state elapsed
DONE 2s
acq_time = 1.00228 s ( 1.00228 s/s) lima_simulator
fwhm_x = 0.00000 px ( 0.00000 px/s) lima_simulator
fwhm_y = 0.00000 px ( 0.00000 px/s) lima_simulator
intensity = 34.8000 ( 34.8000 /s) lima_simulator
x = -1.00000 px ( -1.00000 px/s) lima_simulator
y = -1.00000 px ( -1.00000 px/s) lima_simulator
Out [6]: Scan(name=ct, path='not saved')
Even after resetting the ROIs, the saved files have still the original shape (even though, the position of the Gaussian peak is properly updated)
However, if I open flint() only after changing the shape, it will show the correct updated array:
DEMO_SESSION [1]: lima_simulator.camera.frame_dim = (2068,2162,4)
DEMO_SESSION [2]: flint()
WARNING: Flint starting...
Current Flint PID: 924049
Out [2]: <bliss.flint.client.proxy.FlintClient object at 0x7f34a11a35e0>
DEMO_SESSION [3]: ct()
Edited by Edgar Gutierrez