jstout211 / enigma_MEG

Other
9 stars 1 forks source link

ICA cleaned png #49

Open jstout211 opened 1 year ago

jstout211 commented 1 year ago

Something in here is causing errors that prevent the code from completing

        QAdir = op.join(self.bids_root,'derivatives/ENIGMA_MEG_QA')
        QAsubjdir = QAdir + '/sub-' + self.subject + '/ses-' + self.session
        figname_icaoverlay = QAsubjdir + '/sub-' + self.subject + '_ses-' + self.session + '_run-' + self.run + '_cleaned.png'
        ica=mne.preprocessing.read_ica(op.join(self.fnames.ica))
        ica.exclude = self.ica_comps_toremove #meg_rest_raw.icacomps
        self.load_data()
        fig=ica.plot_overlay(self.raw_rest, exclude=self.ica_comps_toremove)
        fig.savefig(figname_icaoverlay)
jstout211 commented 1 year ago

Still an issue on biowulf -- make a try/except statement at least so it doesn't failout without graphics support