Repository navigation
scale did not survive geff round trip - #267
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #267 +/- ##
==========================================
- Coverage 94.09% 93.99% -0.10%
==========================================
Files 60 60
Lines 3521 3581 +60
==========================================
+ Hits 3313 3366 +53
- Misses 208 215 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@TeunHuijben @AnniekStok I think this explicitly fixes the bug we had with geff axes scaling. We were storing segmentation scale in geff axes. this is incorrect according to the geff spec, since the scale should be multiplied by the stored coordinates (in our case, leading to double scaling). And then, on import, we were never reading the geff axis scale (why we didn't see double scaling), but making it impossible to import external geffs that needed the points scaled. Here I save the segmentation scale in tracksdata graph metadata next to shape. And then, on geff import, if there is a scale, multiply the points by that (unless it is our own erroneous geffs). Thoughts? We can still decide to shift to storing points in pixel space, as done in #262, but we will need to load the old geffs regardless, so this at least straightens up the current state first. |
|
Hi @cmalinmayor, good points! My changes:
My opinions:
|
|
While definitely confusing, the geff spec does not prefer pixel units - a unit of "pixel" on the axes means, these points are in pixels, and any other unit means, non-pixel units. No scale, or scale of 1, on the axes means "these coordiantes are already scaled". When designing the spec, we tried to remain agnostic, which I think just made everything confusing 😅 However, technically, the additional point_units is redundant. |
|
Hi @cmalinmayor, I now realize I fully forgot to commit/push 🤦 Most of my change you already did, thanks! The leftover that I just pushed was:
Good point about the This PR should be ready now, and we can leave the pixel/world units discussion for the other PR |
No description provided.