zoccoler / napari-flim-phasor-plotter

BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

plugin unable to open sdt file #56

Closed jrapaka1 closed 3 months ago

jrapaka1 commented 4 months ago

I am trying to open an sdt file retreived from a Becker Hickl FLIM instrument, but I am getting the following error message: ValueError: could not broadcast input array from shape (1024,1024,1024) into shape (1024,1024)

Is there any way for me to convert the 3D array into 2D? Or is there some other troubleshooting needed?

zoccoler commented 3 months ago

Hi @jrapaka1 ,

Sorry for the delay, I was busy with other projects. I don't have access to a 3D .sdt data to test this. Could you provide a link to an example image so that I can try to reproduce it?

Also, could you please paste a screenshot of the whole Error message? I need more information to understand where the error actually comes from.

jrapaka1 commented 3 months ago

Here is a google drive link to one of our .sdt files: https://drive.google.com/file/d/1TccWcQdkwLnN1ayhKw_rRI_DNMu1LLsI/view?usp=sharing

Here is a screenshot of the error traceback:

naparierrorSS
zoccoler commented 3 months ago

Hi @jrapaka1 ,

It seems you have multiple data sets of different shapes in your sdt file. The first one has dimensions (1024, 1024, 1024) and the second has dimensions (1024, 1024). Since the shapes don't match, we get this error. I would assume your first array is your raw FLIM data, am I right? The second seems to be the summed intensity or average image.

I am working on a fix to open the right raw image. If I open only the first array, I get the following plot:

image Does it make sense? It took quite some time (around 2-3minutes for me) to generate the plot since your FLIM dimension is relatively large, but it seems to be better than in #57 .

jrapaka1 commented 3 months ago

Thank you so much! That phasor looks much more like what we expected.

On Tue, Jun 25, 2024 at 11:02 AM Marcelo Zoccoler @.***> wrote:

Hi @jrapaka1 https://github.com/jrapaka1 ,

It seems you have multiple data sets of different shapes in your sdt file. The first one has dimensions (1024, 1024, 1024) and the second has dimensions (1024, 1024). Since the shapes don't match, we get this error. I would assume your first array is your raw FLIM data, am I right? The second seems to be the summed intensity or average image.

I am working on a fix to open the right raw image. If I open only the first array, I get the following plot:

image.png (view on web) https://github.com/zoccoler/napari-flim-phasor-plotter/assets/26173597/c8d5ed56-259e-43ab-a79e-040e4374dfde Does it make sense? It took quite some time (around 2-3minutes for me) to generate the plot since your FLIM dimension is relatively large, but it seems to be better than in #57 https://github.com/zoccoler/napari-flim-phasor-plotter/issues/57 .

— Reply to this email directly, view it on GitHub https://github.com/zoccoler/napari-flim-phasor-plotter/issues/56#issuecomment-2189199400, or unsubscribe https://github.com/notifications/unsubscribe-auth/BI2CLSPPYFRGRVBZAVQ4K73ZJGA7HAVCNFSM6AAAAABIRN2CDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBZGE4TSNBQGA . You are receiving this because you were mentioned.Message ID: @.***>

zoccoler commented 3 months ago

Closed via #59