Skip to content

Commit

Permalink
check for slicerdmri when loading fiber atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
simonoxen committed Jul 9, 2021
1 parent f3b536d commit f649825
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ImportAtlas/ImportAtlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ def __init__(self, atlasPath):
structure = FibersStructure()
elif pixdimType == 'discfibers':
structure = DiscFibersStructure()
if isinstance(structure, FibersStructure) and not hasattr(slicer.modules,'tractographydisplay'):
qt.QMessageBox().warning(qt.QWidget(), "Error", "Install SlicerDMRI Extension to load fiber atlases")
continue
structure.atlasPath = atlasPath
structure.index = i
structure.name = names[i]
Expand Down

0 comments on commit f649825

Please sign in to comment.