DCBIA-OrthoLab / SlicerDentalModelSeg

This extension aims to provide a GUI for a deep-learning automated teeth segmentation tool that we developed at the University of North Carolina in Chapel Hill in collaboration with the University of Michigan in Ann Arbor.
Apache License 2.0
44 stars 10 forks source link

Extension Loading Failure on Linux Machine Due to Unused Import #26

Open eslam69 opened 6 months ago

eslam69 commented 6 months ago

The instantiation failure of the CrownSegmentation module in Slicer is attributed to the following line: https://github.com/DCBIA-OrthoLab/SlicerDentalModelSeg/blob/e98d590c92f1a61e1e374005b16a0ea76067170f/CrownSegmentation/CrownSegmentation.py#L10 It is noted that only CondaSetUpCallWsl is utilized from this import. A potential resolution involves relocating the import statement to the scope where it is used, specifically within the else statement's scope: https://github.com/DCBIA-OrthoLab/SlicerDentalModelSeg/blob/e98d590c92f1a61e1e374005b16a0ea76067170f/CrownSegmentation/CrownSegmentation.py#L736-L739

Should I proceed to fix this issue by submitting a PR?