Skip to content

Commit

Permalink
paquo.hierarchy: flush proxies after load_geojson
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Aug 25, 2021
1 parent 9bba367 commit 73c463d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion paquo/hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,10 @@ def load_geojson(
f"skipped {n_skipped} annotation objects: {skipped.most_common()}"
)

return bool(self.java_object.insertPathObjects(aos))
updated = bool(self.java_object.insertPathObjects(aos))
if updated:
self.flush(invalidate_proxy_cache=True)
return updated

def to_ome_xml(self, prefix="paquo", fill_alpha=0.0) -> str:
"""return all annotations in ome xml format"""
Expand Down

0 comments on commit 73c463d

Please sign in to comment.