Lima-tango-python issueshttps://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues2024-03-15T16:23:17+01:00https://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/68lima: can't translate python object to C char* for some camera simulator attr...2024-03-15T16:23:17+01:00Valentin Vallslima: can't translate python object to C char* for some camera simulator attributesThis is only for some Lima simulator attributes `mode`, `fill_type`, `rotation_axis`.
This was displayed while scanning stuffs
```
Error reading lima property mode (TypeError: can't translate python object to C char*)lit_bottom -0.9500
...This is only for some Lima simulator attributes `mode`, `fill_type`, `rotation_axis`.
This was displayed while scanning stuffs
```
Error reading lima property mode (TypeError: can't translate python object to C char*)lit_bottom -0.9500
Error reading lima property fill_type (TypeError: can't translate python object to C char*)
Error reading lima property rotation_axis (TypeError: can't translate python object to C char*)
```
This can be reproduced this way:
```
DEMO_SESSION [13]: tomocam.camera.fill_type
Error reading lima property fill_type (TypeError: can't translate python object to C char*)
DEMO_SESSION [14]: beamviewer.camera.fill_type
Error reading lima property fill_type (TypeError: can't translate python object to C char*)
DEMO_SESSION [15]: beamviewer.camera.rotation_axis
Error reading lima property rotation_axis (TypeError: can't translate python object to C char*)
```
What do you think @debionne?Samuel DebionneSamuel Debionnehttps://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/67shutter_mode attribute not working2024-03-12T13:45:57+01:00Laurent Claustreshutter_mode attribute not workingsince pytango 9.4 dynamic attribute creation with using getattr and get_attr_4u help does not longer work.
Just create the two class methode read/write_shutter_modesince pytango 9.4 dynamic attribute creation with using getattr and get_attr_4u help does not longer work.
Just create the two class methode read/write_shutter_modeLaurent ClaustreLaurent Claustrehttps://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/63Log level should be a property and set to warning by default2023-07-04T11:48:53+02:00Samuel DebionneLog level should be a property and set to warning by defaulthttps://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/61Mask device: add a "silx" mode to mode attribute and a command to pass mask data2023-01-09T16:34:51+01:00Laurent ClaustreMask device: add a "silx" mode to mode attribute and a command to pass mask dataLaurent ClaustreLaurent Claustrehttps://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/58Incompatibility with pyTango v9.3.52022-09-12T09:28:43+02:00Samuel DebionneIncompatibility with pyTango v9.3.5With the latest release of pyTango, LimaCCDs fails with `AssertionError: Sanity check failed`. See [related issue](https://gitlab.com/tango-controls/pytango/-/issues/463#note_1095279955).
On our side, we might want to revisit the `__get...With the latest release of pyTango, LimaCCDs fails with `AssertionError: Sanity check failed`. See [related issue](https://gitlab.com/tango-controls/pytango/-/issues/463#note_1095279955).
On our side, we might want to revisit the `__getattr__` code.https://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/47LimaCCDs: Deprecation warning to replace `tostring`2021-06-25T17:09:55+02:00Valentin VallsLimaCCDs: Deprecation warning to replace `tostring`While i was playing with the simulator i have received that stuff.
No idea why it's the first time i notice that stuff.
It is produced by `_image_2_data_array`
```
/nobackup/lvalls1/valls/Software/miniconda3/envs/tomodemoenv/lib/pytho...While i was playing with the simulator i have received that stuff.
No idea why it's the first time i notice that stuff.
It is produced by `_image_2_data_array`
```
/nobackup/lvalls1/valls/Software/miniconda3/envs/tomodemoenv/lib/python3.7/site-packages/Lima/Server/LimaCCDs.py:1874: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
dataStr = dataheader + flatData.tostring()
```
I can patch that stuff if you like.https://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/46Create a standalone library for DataArray encoding / decoding2021-09-20T13:47:17+02:00Samuel DebionneCreate a standalone library for DataArray encoding / decodingDataArray encoding is currently in `LimaTacoCCD.py` and at least one implementation of the decoding is in Bliss `bliss/data/lima_image.py`. Would be nice to have that in the same library, reusable for other projects (@valentin.valls does...DataArray encoding is currently in `LimaTacoCCD.py` and at least one implementation of the decoding is in Bliss `bliss/data/lima_image.py`. Would be nice to have that in the same library, reusable for other projects (@valentin.valls does Flint has its own decoding too?)
Related to the new DataArray version discussed in !75
I know that @rey was looking for something like this sometime ago to test the Ximea.https://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/29[bpm] option for bayer decoding2020-09-04T14:23:41+02:00Stuart Fisher[bpm] option for bayer decoding@berruyer asked if its possible for the bpm-web viewer to show images in colour.
I think it should be possible to add an option to return colour image, for instance bayer decode.
I'm not quite sure how you get hold of the image mode an...@berruyer asked if its possible for the bpm-web viewer to show images in colour.
I think it should be possible to add an option to return colour image, for instance bayer decode.
I'm not quite sure how you get hold of the image mode and thus know if you need to bayer decode, somewhere here:
https://gitlab.esrf.fr/limagroup/Lima-tango-python/-/blob/master/plugins/Bpm.py#L657
In my video streamer i do something along the lines of
```
if cv2:
if image_mode >= 11 or image_mode <= 14:
data = cv2.cvtColor(data, cv2.COLOR_BAYER_RG2RGB)
```
where image_mode comes from the image headerStuart FisherStuart Fisherhttps://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/25bpm.Stop() hangs if called to soon after the acquisition ends2020-07-03T15:46:38+02:00Perceval Guilloubpm.Stop() hangs if called to soon after the acquisition ends
test code:
```python
import tango
import time
bpm = tango.DeviceProxy('id00/bpm/samsim')
cam = tango.DeviceProxy('id00/limaccds/samsim')
cam.acq_expo_time = 1
sleep_time = 0.001
bpm_delay = 0.05
#-----start acquisition
bpm.Start()
...
test code:
```python
import tango
import time
bpm = tango.DeviceProxy('id00/bpm/samsim')
cam = tango.DeviceProxy('id00/limaccds/samsim')
cam.acq_expo_time = 1
sleep_time = 0.001
bpm_delay = 0.05
#-----start acquisition
bpm.Start()
cam.prepareAcq()
cam.startAcq()
#-----wait for image acquisition
while cam.last_image_ready == -1:
time.sleep(sleep_time)
#-----wait for bpm data
data = []
while len(data) == 0:
data = bpm.GetResults(0)
time.sleep(sleep_time)
#-----stop/clean
cam.stopAcq()
#time.sleep(bpm_delay) # <= introducing a delay >~ 0.02s avoids the error on next line (bpm.stop)
bpm.Stop() # <= hangs here and timeout after 3sec IF CALLED TOO SOON after end of acquisition
return data
```https://gitlab.esrf.fr/limagroup/Lima-tango-python/-/issues/4mask/ffield/background plugin add a command to set data instead of file2020-08-21T17:17:41+02:00Laurent Claustremask/ffield/background plugin add a command to set data instead of fileThe input file is not always available from the detector PC, so we need a command to send a image data to the plugin.
Minimum checking should be implemented on image size and image depth.The input file is not always available from the detector PC, so we need a command to send a image data to the plugin.
Minimum checking should be implemented on image size and image depth.Laurent ClaustreLaurent Claustre