Closed p-j-smith closed 1 year ago
Preview page for your plugin is ready here: https://preview.napari-hub.org/quantumjot/btrack/369 Updated: 2023-08-08T13:14:32.448529
Patch coverage: 71.15%
and project coverage change: -0.33%
:warning:
Comparison is base (
009622b
) 85.91% compared to head (817a73e
) 85.58%. Report is 3 commits behind head on main.
:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Is the plan to also have the box underneath or not? https://github.com/quantumjot/btrack/issues/266#issuecomment-1480162405
I think this is the typical way of creating writers for napari, but we could do - it might make it more obvious to users that the writer exists!
The tracks look the same once loaded back into napari, but I haven't yet checked that all attributes of the layers are identical
I've now checked the attributes of the tracks by loading the sample dataset and doing:
data, properties, graph = tracks_to_napari(tracks)
new_tracks = napari_to_tracks(data, properties, graph)
The only difference is in the track.z
values. The tracks are 2D, and when the napari layer is created the z
values are lost. But the dummy objects in the original tracks have non-zero z
values. Otherwise everything looks okay!
I've now checked the attributes of the tracks by loading the sample dataset and doing:
data, properties, graph = tracks_to_napari(tracks) new_tracks = napari_to_tracks(data, properties, graph)
Do/could we have a test for this?
Do/could we have a test for this?
Good idea - it made me realise I wasn't setting the generation correctly
Part of #266
Tracks
layer to hdfTracks
layer, go toFile > Save selected layers
and enter a filename with a.h5
extension.https://github.com/quantumjot/btrack/assets/29753790/1f64c4ea-aeb9-44b7-b9e8-f83fe4095311
The tracks look the same once loaded back into napari, but I haven't yet checked that all attributes of the layers are identical
I've added a function
btrack.utils.napari_to_tracks
that takes in the layer data and returns a list ofTracklet
sit uses
btrack.utils.objects_from_dict
to generate thePyTrackObjects
I'm not sure if the way I'm setting the
Tracklet.root
andTracklet.parent
is okay?