Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in importing labels_to_contours #141

Open
brunicardoso opened this issue Sep 16, 2024 · 1 comment
Open

error in importing labels_to_contours #141

brunicardoso opened this issue Sep 16, 2024 · 1 comment

Comments

@brunicardoso
Copy link

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
Copy link
Member

JoOkuma commented Sep 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants