From a code search, it appears that the segmenter no longer uses MorphoCut except for a morphocut.contrib.ecotaxa.dtype_to_ecotaxa function call to convert the field names of a dataset metadata pandas.DataFrame instance into a format suitable for EcoTaxa-flavored TSV; MorphoCut is no longer used for actual image processing. Thus, we should be able to remove the MorphoCut dependency by vendoring the dtype_to_ecotaxa function (i.e. copying the function definition into the processing/segmenter/planktoscope/segmenter/ecotaxa.py module and using it to replace the morphocut.contrib.ecotaxa.dtype_to_ecotaxa function call). Removing MorphoCut will help to simplify our dependency situation.
From a code search, it appears that the segmenter no longer uses MorphoCut except for a
morphocut.contrib.ecotaxa.dtype_to_ecotaxa
function call to convert the field names of a dataset metadata pandas.DataFrame instance into a format suitable for EcoTaxa-flavored TSV; MorphoCut is no longer used for actual image processing. Thus, we should be able to remove the MorphoCut dependency by vendoring thedtype_to_ecotaxa
function (i.e. copying the function definition into theprocessing/segmenter/planktoscope/segmenter/ecotaxa.py
module and using it to replace themorphocut.contrib.ecotaxa.dtype_to_ecotaxa
function call). Removing MorphoCut will help to simplify our dependency situation.