Closed hajicj closed 7 years ago
Places to change:
(Note: we don't need to phase clsid
out of MLClasses, it's a useful tool for sorting them. However, we want to phase it out of CropObjects.)
generate_cropobject_from...()
functionsapply_mlclass_to_selection()
selectable_cropobject_converter()
uses clsid
as index into mlclass color dicttoggle_class_selection
, do_class_selection
and a ton of others (can be easily changed to clsname
)model.mlclasses_by_name[clsname]
)do_mlclass_selection()
equality check (can be changed to clsname)set_mlclass()
- can be deletedsplit()
, which leads to App.add_cropobject_from_selection()
muscimarker_io.position_cropobject_list_by_muscimage()
muscimarker_io.render_annotations()
(rewrite mlclass_dict
to be indexed by clsname
)
It does not ever get used for anything useful, instead introducing an extra dependency on the MLClassList.
However, there are more places where this change needs to be made within MUSCIMarker.