Skip to content

Commit

Permalink
Save points layer to xml even if there isn't any metadata (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson authored Dec 18, 2023
1 parent c758689 commit 3e910f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brainglobe_napari_io/cellfinder/writer_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def write_multiple_points_to_xml(
name = attributes["name"]
show_info(
f'Did not find point type in metadata for "{name}" layer, '
"not saving to file."
"Defaulting to 'Unknown'"
)
cells_to_save.extend(convert_layer_to_cells(data, cells=False))
elif attributes["metadata"]["point_type"] == Cell.CELL:
cells_to_save.extend(convert_layer_to_cells(data))
elif attributes["metadata"]["point_type"] == Cell.UNKNOWN:
Expand Down

0 comments on commit 3e910f4

Please sign in to comment.