Esempio n. 1
0
    def _edit_subject_trait(self):
        if self.tab_event is None:
            return
        subj_attrs = ['name', 'fname', 'fpath']
        print self.tab_event.row, self.tab_event.column
        if self.tab_event.column==2:
            subj = self.subjs[self.tab_event.row]
##             subj.configure_traits(view='file_view', kind='modal')
            subj.fpath = browse_files(None)
        print getattr(self.subjs[self.tab_event.row],
                      subj_attrs[self.tab_event.column])
Esempio n. 2
0
 def on_load_mr(self, bool):
     fname = browse_files(self, dialog='Select Image File',
                          wildcard='Images (*.nii *.nii.gz *.hdr *.img)')
     if fname:
         self.update_image(fname)
Esempio n. 3
0
 def _sbutton_fired(self):
     f = browse_files(None, dialog='Select SnPM Arrays',
                      wildcard='*.mat *.npy *.npz')
     if f:
         sres = tfstats_results.load_tf_snpm_stats(f)
         self.bstats_manager.stats_results = sres
Esempio n. 4
0
 def _lbutton_fired(self):
     f = browse_files(None, dialog='Select File',
                      wildcard='*.nii *.nii.gz *.hdr *.img')
     if f:
         self.set_ndimage_data(f)
Esempio n. 5
0
 def _lbutton_fired(self):
     f = browse_files(None, dialog='Select File',
                      wildcard='*.mat *.npy *.npz')
     if f:
         self.update_beam(f)