Example #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])
Example #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)
 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
Example #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)
 def _lbutton_fired(self):
     f = browse_files(None, dialog='Select File',
                      wildcard='*.mat *.npy *.npz')
     if f:
         self.update_beam(f)