Open jo-mueller opened 1 year ago
Patch coverage: 84.90
% and project coverage change: +1.55
:tada:
Comparison is base (
e38cc72
) 86.08% compared to head (9731298
) 87.63%.
: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: Do you have feedback about the report comment? Let us know in this issue.
@haesleinhuepf Thanks for having a look at this. I think what I'm still missing here is taking the associated transformations (scale
, affine
, rotation
) into the newly created feature map. Are those attributes part of what concerns you regarding backwards-compatibility?
Otherwise I would say what I did is 70% refactoring, mainly.
I added the scale
, affine
, rotation
to the properties of the returned feature map and also amended the tests to make sure that these parameters are always set.
Hi @haesleinhuepf , is there something I could do to see this through? I would be really happy to see this as part of the plugin :)
Hi @haesleinhuepf,
I made a little addon to the results table. I created a function
create_featuremaps
that generalizes the functionality that was previously in the_on_double_click()
function of theTableWidget
, which is triggered when the table header is doubleclicked and which generated a featuremap.The
_on_double_click()
function now just calls the newcreate_featuremaps
function and passes the layer and the feature column to it. The new function then visualizes the feature accordingly for every layer:Labels
layerface_color
according to featureedge_color
according to featuresurface[2]
overwritten with the values of the selected feature.Since
viewer.add_surface(data, features=features)
is not allowed whereasviewer.add_surface(data, metadata = {'features':features})
is, I added a little snipped in the__init__
of theTableWidget
, which moves the features from the metadata tolayer.features
.QA
Let me know what you think!