(no subject)

fig = ica.plot_scores(scores, exclude=eog_inds)
                file_end= 'scores.png'
                filename = directory+subjects[s]+sessions[x]+file_end
                plt.savefig(filename)
                print 1
                plt.close(fig)
                print 2

fig=ica.plot_sources(epochs_bp,eog_inds)
                file_end = 'sources.png'
                filename = directory+subjects[s]+sessions[x]+file_end
                plt.savefig(filename)
                print 3
                plt.close(fig)
                print 4
                #del fig
                fig=ica.plot_components(eog_inds, colorbar=True)
                file_end = 'components.png'
                filename = directory+subjects[s]+sessions[x]+file_end
                plt.savefig(filename)
                print 5
                plt.close(fig)
                print 6
                #del fig
                ica.exclude += eog_inds[:1]

eog_evoked = eog_epochs.average()
                fig=ica.plot_sources(eog_evoked)
                file_end='reconstructed_latent_sources.png'
                filename = directory+subjects[s]+sessions[x]+file_end
                plt.savefig(filename)
                print 7
                plt.close(fig)
                print 8
                #del fig
                fig=ica.plot_overlay(eog_evoked)
                file_end='signal_before_and_after_ica.png'
                filename = directory+subjects[s]+sessions[x]+file_end
                plt.savefig(filename)
                print 9
                plt.close(fig)
                print 10
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140816/092c0c63/attachment.html

Sorry, the previous email was sent by mistake!

Regards,
Maria

2014-08-16 15:04 GMT+03:00 Maria Hakonen <maria.hakonen at gmail.com>:

               fig = ica.plot_scores(scores, exclude=eog_inds)
                file_end= 'scores.png'
                filename = directory+subjects[s]+sessions+file_end
                plt.savefig(filename)
                print 1
                plt.close(fig)
                print 2

fig=ica.plot_sources(epochs_bp,eog_inds)
                file_end = 'sources.png'
                filename = directory+subjects[s]+sessions+file_end
                plt.savefig(filename)
                print 3
                plt.close(fig)
                print 4
                #del fig
                fig=ica.plot_components(eog_inds, colorbar=True)
                file_end = 'components.png'
                filename = directory+subjects[s]+sessions+file_end
                plt.savefig(filename)
                print 5
                plt.close(fig)
                print 6
                #del fig
                ica.exclude += eog_inds[:1]

eog_evoked = eog_epochs.average()
                fig=ica.plot_sources(eog_evoked)
                file_end='reconstructed_latent_sources.png'
                filename = directory+subjects[s]+sessions+file_end
                plt.savefig(filename)
                print 7
                plt.close(fig)
                print 8
                #del fig
                fig=ica.plot_overlay(eog_evoked)
                file_end='signal_before_and_after_ica.png'
                filename = directory+subjects[s]+sessions+file_end
                plt.savefig(filename)
                print 9
                plt.close(fig)
                print 10

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

The information in this e-mail is intended only for the person to whom it
is
addressed. If you believe this e-mail was sent to you in error and the
e-mail
contains patient information, please contact the Partners Compliance
HelpLine at
MyComplianceReport.com: Compliance and Ethics Reporting . If the e-mail was sent to you in
error
but does not contain patient information, please contact the sender and
properly
dispose of the e-mail.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140816/2e6d3bcf/attachment.html