royerlab / ultrack

Cell tracking and segmentation software
https://royerlab.github.io/ultrack
BSD 3-Clause "New" or "Revised" License
95 stars 12 forks source link

error in importing labels_to_contours #141

Open brunicardoso opened 2 months ago

brunicardoso commented 2 months ago

Hello,

I am getting the following error message while importing the required libraries for the multi_color_ensemble notebook.

Thanks,

Alexandre


ImportError Traceback (most recent call last) Cell In[1], line 22 20 from numpy.typing import ArrayLike 21 from ultrack import track, to_tracks_layer, tracks_to_zarr # to_trackmate, ---> 22 from ultrack.utils import labels_to_contours 23 from ultrack.config import MainConfig 25 from ultrack.imgproc import normalize

ImportError: cannot import name 'labels_to_contours' from 'ultrack.utils' (C:\Users\bruni\miniconda3\envs\ultrack\lib\site-packages\ultrack\utils__init__.py)

JoOkuma commented 2 months ago

Hi @brunicardoso,

Sorry for the delayed response. Can you check what version of ultrack you have installed?

This function used to be called labels_to_edges, and it was recently renamed; I recommend trying to import this one. The latest versions of 'ultrackcontain both, butlabels_to_edges` will soon be deprecated -- they do the same thing.