def _cmp_factory(self, window, **traits): """ Factory method for the mapper """ from enthought.pyface.workbench.traits_ui_view import TraitsUIView try: from cmp.gui import CMPGUI mycmp = CMPGUI() except: return tui_engine_view = TraitsUIView(obj=mycmp, id=CMPVIEW, name='Connectome Mapper', window=window, position='right', #relative_to=ENGINE_VIEW, **traits ) return tui_engine_view
# Example script to setup the pipeline configuration # Use cmpgui.print_traits() to show all the available attributes # from within IPython import cmp from cmp.gui import CMPGUI cmpgui = CMPGUI() cmpgui.project_dir = u'/home/sgerhard/data/project01_dsi' cmpgui.subject_workingdir = u'/home/sgerhard/data/project01_dsi/ale01/tp1' cmpgui.subject_timepoint = u'tp1' cmpgui.subject_name = u'ale01' cmpgui.subject_raw_glob_T1 = '*.*' cmpgui.subject_raw_glob_T2 = '*.*' cmpgui.subject_raw_glob_diffusion = '*.*' cmpgui.active_applyregistration = True cmpgui.active_cffconverter = True cmpgui.active_connectome = True cmpgui.active_createfolder = True cmpgui.active_dicomconverter = True cmpgui.active_fiberfilter = True cmpgui.active_parcellation = True cmpgui.active_reconstruction = True cmpgui.active_registration = True cmpgui.active_segmentation = True cmpgui.active_statistics = False cmpgui.active_tractography = True cmpgui.apply_fiberlength = True cmpgui.apply_splinefilter = True
from cmp.gui import CMPGUI cmpgui = CMPGUI() cmpgui.project_name = '' cmpgui.project_dir = '' cmpgui.subject_name = '' cmpgui.subject_timepoint = '' cmpgui.subject_workingdir = '' cmpgui.show() #cmp.connectome.mapit(cmpgui)
from cmp.gui import CMPGUI import cmp.connectome cmpgui = CMPGUI() cmpgui.project_name = 'a' cmpgui.project_dir = 'a' cmpgui.subject_name = 'a' cmpgui.subject_timepoint = 'a' cmpgui.subject_workingdir = 'a' #cmpgui.show() cmp.connectome.mapit(cmpgui)