aics-int / napari-allencell-annotator

Other
0 stars 1 forks source link

85 point loading from csv #96

Closed memeramita closed 2 months ago

memeramita commented 2 months ago

Context

85 This pr supports rendering point annotations from a csv file. Most of the mechanisms have already been implemented in #94, so I only added a method to convert string coordinates read from the csv to a list of tuples.

Changes

All of the changes are in main_view.py

process_points_annotations(): This method loops through all annotations from the csv and check if each is point annotation. If it is and has been annotated, the annotation string is converted to a list of tuples.

csv_json_import_selected_evt(): It is modified to call process_points_annotations() before adding the annotations to the model.