Generate ERP figures after bcipy sessions #260
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Added a
visualize_session_data
method tohelpers/visualization.py
. This method is now used inmain.py
with the boolean visualize onbci_main
. This results in an ERP image generated after each session (fake, calibration, copy phrase, etc.). It will fail to generate an image if no target or nontarget labels are found.Ticket
Ticket
Contributions
helpers/visualization.py
: new methodvisualize_session_data
that leverages the existingvisualize_erp
function.offline_analysis.py
: by default, do not save the figures after training; assume this will happen after a session. This is helpful to know what channels etc., to include before training.main.py
: update bci_main to include a visualize boolean. Using the newvisualize_session_data
method, an ERP image is generated and saved to the session folder.Test
Make test-all
Make integration-test
bcipy
and ensure figures generate after the session.Documentation
Changelog