Open joaomamede opened 4 months ago
Image from napari: (111,1020,1020)
Before batch: (111, 1, 1020, 1020)
Is the added dimension expected ? Do you know if the order of your dimensions matches the one expected by trackpy ?
From closer inspection of the code I believe it is using the pims flag .frameno and assigning everything to 0. I will test with different napari plugins. I believe that using napari-bioformats is leading to this.
Is the added dimension expected ? Do you know if the order of your dimensions matches the one expected by trackpy ?
Yes and Yes. It always assumes frame 0. possibly because of the way batch works trying to get the "frame" number from pims (it only goes from 0 to n if the variable is not there in the class).
python 3.11 trackpy 0.6.2 (I tried now with 0.6.1, problem is still there) all anaconda packages (conda-forge)
I have a plugin for napari that pulls data from a layer and then tp.batches with all the settings from the GUI:
If I have a TZYX image, all is good it works as intended. If I have a TYZ image tp.batch detects all frames as 0 and outputs the Dataframe as such (I added that np.expand_dims trying to fix it but it did not work.