Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #627 +/- ##
==========================================
+ Coverage 92.00% 92.11% +0.10%
==========================================
Files 48 48
Lines 7408 7429 +21
==========================================
+ Hits 6816 6843 +27
+ Misses 592 586 -6
🚀 New features to boost your workflow:
|
|
@melonora converting to draft, what's missing for the moment, just
|
|
|
Hi, I reviewed the PR. First please check my comment in this linked PR: #626 (comment). In this PR, I refined the function described in the comment linked above, into a new public API Since the purpose of the current PR was to add a private function that could support the This is supported also by the following reasons:
Finally, since two comments that I had from the review of the
|
|
Ready for review! I tag both @melonora and @aeisenbarth please. In this PR I also:
|
Co-authored-by: Wouter-Michiel Vierdag <[email protected]>
closes #556
This PR allows for filtering elements (points, shapes, tables) on instance IDs. For labels I decided just as with the joins to not support it as it is potentially an expensive operation, where I am not certain what the usecase would be (one can adjust the color to a background color in any case for particular labels or even set it transparent).
The PR is related to #626, however I think it is better to separate out filtering on instance IDs. The function here can ultimately still be used in his function.
The PR will not cause an error in case of filtering on instance IDs that are not there. Furthermore it is not a problem to filter on instances in a table that is annotating more than 1 element. If instances for both annotated elements need to be filtered in the table this will be retrieved. If
region_namesis defined, a view of the table with rows annotating elements inregion_namesis first created before filtering on instance IDs.After filtering of the table, the metadata for annotation of regions is checked and updated after which the table is validated.
Changelog
match_sdata_to_table()which allows for complex subsetting ofSpatialDataobjectsSpatialData.get_annotated_regions()to compute on-the-fly the regions annotated by a table, instead of returning `table.uns['spatialdata_attrs']['region']overwrite_metadataparameter toTableModel.parse()to conveniently replaceregion,region_key,instance_keymetadata.Update Luca (as shown with the code in the tests):
closes #280
closes #284