Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return actual image in ReadOne #21

Open
dschick opened this issue Apr 19, 2024 · 4 comments
Open

Return actual image in ReadOne #21

dschick opened this issue Apr 19, 2024 · 4 comments

Comments

@dschick
Copy link

dschick commented Apr 19, 2024

Hi,

Thanks a lot for this very complete solution to work with Lima!

From my initial testing and my understanding of the code, it seems that this 2Dcontroller only returns the reference to an acquired image, but is not able to return actual data.

For some of our applications, it is very convenient to also have the image data available in Sardana and to directly save it to a single hdf5 file.

Is there any limitation to enable data saving?

Best

Daniel

@rhomspuron
Copy link
Contributor

Hi Daniel,

Great that this solution works for you!

There is no limitation to pass the image, but we decided by design that 2D should not pass the image and use the reference, because the image is big and lima saves the image directly. We saw problems when the image is big and transferred from Pool and Macroserver (memory leaks, crashes, etc). It is possible to pass the image for 2D, we do it for 1D.

I guess you want the image in Macroserver (not in Pool), a possible solution is to open the image saved by Lima, this way you don't need to transfer the image from Lima -> Pool -> Macroserver, is that ok?

Does your lima plugin allow to save hdf5?

Best regards,
Roberto

@dschick
Copy link
Author

dschick commented Apr 19, 2024

Hi @rhomspuron

thanks a lot for your prompt reply.
Indeed I would like to have the image first in the pool for ROI calculations and then in the macroserver for saving it to hdf5.

I know that the first part should be doable with the integrated Lima ROI tangoDS and Sardana-limaccd roi controller.
The second part would be easily solvable if the Lima interface allows for hdf5 saving and then passing the referrable to the Sardana nexus recorder.

I will try working on the first part. But I am fairly new to Lima.
Moreovery, we are currently using the DESY LaVue application as an image viewer and to define the actual ROI coordinates for the calculations. I have to check if Lima and LaVue are somehow compatible.

Best

Daniel

@rhomspuron
Copy link
Contributor

Hi @dschick,

LaVue is compatible with Lima, we are evaluating it as Beam Position Monitor application. About the ROIs the controller does the configuration without problem. If you need help don't hesitate to ask.

Best,
Roberto

@dschick
Copy link
Author

dschick commented Apr 22, 2024

Oh great, I will try it this week and certainly come back to you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants