readlif icon indicating copy to clipboard operation
readlif copied to clipboard

XT scan

Open khoroshyy opened this issue 3 years ago • 6 comments

Hi, Would it be possible to implement reading xt scan? Thanks. Petro

khoroshyy avatar Mar 19 '21 20:03 khoroshyy

Hello, thanks for opening this issue. This functionality is actually almost done! If you need this functionality right now, take a look at #14 and the development branch. I can't guarantee that the code / names of functions in the development branch will remain the same, but the code is almost done. It is also really lacking documentation.

As soon as I can find time to write up some good documentation and do code cleanup this will end up on the main branch.

-Nick

nimne avatar Mar 19 '21 20:03 nimne

Thanks. Looks like working. What is the meaning of scale factor for t axis? Thanks. Petro.

khoroshyy avatar Mar 20 '21 09:03 khoroshyy

Dev branch successfully reads my data file but i am not sure how to get frame out of it.

LifImage object with dimensions: Dims(x=64, y=1, z=1, t=8192, m=1)

it proposes to use extended frame but if I try to use extended frame but there in no such method. SmartSelect_20210321-231804_Chrome.jpg SmartSelect_20210321-231702_Chrome.jpg

khoroshyy avatar Mar 21 '21 22:03 khoroshyy

Hi, sorry for the long pause! I've uploaded a new release (in which I've realized I forgot to clarify that error message). Can you give 0.6.1 a try, and use get_plane() to access your image?

I renamed get_extended_frame() to get_plane() without updating the error message - oops!

nimne avatar Apr 20 '21 22:04 nimne

Perfect. It works. When will it go to master?

khoroshyy avatar May 18 '21 10:05 khoroshyy

This is already in master and is up on pypi! The current limitation is that it doesn't handle multi-channel images correctly. That's on my list to fix as soon as I have time to figure out the problem, but that might be a while.

nimne avatar May 19 '21 14:05 nimne