mastodon-sc / mastodon

Mastodon – a large-scale tracking and track-editing framework for large, multi-view images.
BSD 2-Clause "Simplified" License
69 stars 20 forks source link

Saving and Reloading BranchSpot Feature in Table does not work #279

Closed stefanhahmann closed 2 months ago

stefanhahmann commented 9 months ago

Bug Description

Steps to reproduce

Reproduce by Saving and Reloading project

  1. Clone project: https://github.com/mastodon-sc/mastodon-example-data/tree/master/tgmm-mini
  2. Open Fiji
  3. Open Mastodon Beta-28
  4. Open Feature Computer
  5. Compute BranchSpot feature, e.g. Branch duration and displacement, Branch depth and Branch N Spots
  6. Save project as new project
  7. Close project
  8. Open Mastodon again
  9. Open project
  10. Open Table

GIF 16 02 2024 09-40-05

After this procedure, the previously computed (and presumably serialized and deserialized) feature values are not shown in the feature table. Instead those columns appear to be empty:

grafik

Expected behaviour

The columns should show the same values as after the computation of the features.

Reproduce by Regenerating the branch graph after branch graph features have been computed

  1. Compute Branch Features
  2. Press "Regenerate" in TrackScheme window

GIF 16 02 2024 12-07-57

Tested in environment:

stefanhahmann commented 9 months ago

I think, I can narrow it down to this line in ProjectLoader: https://github.com/mastodon-sc/mastodon/blob/734af0f69b8614f5218c83dfd69efaaf81bb0a9c/src/main/java/org/mastodon/mamut/io/ProjectLoader.java#L196

The value maps in the feature model do have values before this branch graph sync and after, these maps are empty.

The same happens, if the feature are computed and the branch graph is regenerated manually by pressing "Regenerate" in the TrackSchemeView.

stefanhahmann commented 2 months ago

Resolved via #325