Skip to content

Commit

Permalink
Merge pull request #319 from BiAPoL/fix-feature-loading
Browse files Browse the repository at this point in the history
prefer loading features from `features` rather than `properties`
  • Loading branch information
zoccoler authored Jun 12, 2024
2 parents 5bd3d40 + ceaff42 commit 861bcf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napari_clusters_plotter/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ def get_layer_tabular_data(layer):
pandas.DataFrame or None
A DataFrame containing the tabular data, or None if no data was found.
"""
if hasattr(layer, "properties") and layer.properties is not None:
return pd.DataFrame(layer.properties)
if hasattr(layer, "features") and layer.features is not None:
return layer.features
if hasattr(layer, "properties") and layer.properties is not None:
return pd.DataFrame(layer.properties)
return None


Expand Down

0 comments on commit 861bcf5

Please sign in to comment.