-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report artifact enhancements, README, Python 3.10.6 support #357
Merged
Merged
Changes from 9 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a95499a
upgrade mne and wip artifact changes
tab-cmd 66f7f8f
all a prompt in ask directory
tab-cmd 786d7c8
Add demo, update tests and lint
tab-cmd 4ab2938
update coverage config
tab-cmd d65c694
Update READMEs
tab-cmd e38d1c8
use the last version compatible with 3.8
tab-cmd bb089a0
Remove wishlist
tab-cmd 563aceb
try adding python 3.10
tab-cmd ccb36c8
specify the version of 3.10
tab-cmd 7ebeb8f
upgrade psychopy
tab-cmd 740af67
add text on how artifact defaults were determined
tab-cmd 8afd91d
Add default preview font, add preview text size parameters, add previ…
tab-cmd e62dd17
update tests
tab-cmd e5ed717
add missing init files
tab-cmd 402391b
fix wheel install error on simulator
tab-cmd f5c981a
Add Task metadata needed for the SimulatorCopyPhraseTask
tab-cmd 6fa1dca
lint
tab-cmd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,8 @@ If using zsh, instead of bash, you may encounter a segementation fault when runn | |
## Installation | ||
--------------- | ||
|
||
#### BciPy Setup | ||
### BciPy Setup | ||
---------------- | ||
|
||
In order to run BciPy on your computer, after following the dependencies above, you will need to install the BciPy package. | ||
|
||
|
@@ -62,26 +63,86 @@ Alternately, if [Make](http://www.mingw.org/) is installed, you may run the foll | |
make dev-install | ||
``` | ||
|
||
#### Client Usage | ||
Invoke an experiment protocol or task directly using command line utility `bcipy`. | ||
- You can pass it attributes with flags, if desired. | ||
Running with a User ID and Task: `bcipy --user "bci_user" --task "RSVP Calibration"` | ||
Running with a User ID and Tasks with a registered Protocol: `bcipy --user "bci_user" --experiment "default"` | ||
Running with fake data: `bcipy --fake` | ||
Running without visualizations: `bcipy --noviz` | ||
Running with alerts after each Task execution: `bcipy --alert` | ||
Running with custom parameters: `bcipy --parameters "path/to/valid/parameters.json"` | ||
### Client Usage | ||
---------------- | ||
|
||
##### Run an experiment protocol or task | ||
|
||
Invoke an experiment protocol or task directly using command line utility `bcipy`. | ||
|
||
- Use the help flag to see other available input options: `bcipy --help` | ||
- You can pass it attributes with flags, if desired. | ||
- Running with a User ID and Task: | ||
- `bcipy --user "bci_user" --task "RSVP Calibration"` | ||
- Running with a User ID and Tasks with a registered Protocol: | ||
- `bcipy --user "bci_user" --experiment "default"` | ||
- Running with fake data: | ||
- `bcipy --fake` | ||
- Running without visualizations: | ||
- `bcipy --noviz` | ||
- Running with alerts after each Task execution: | ||
- `bcipy --alert` | ||
- Running with custom parameters: | ||
- `bcipy --parameters "path/to/valid/parameters.json"` | ||
|
||
##### Train a signal model with registered BciPy models | ||
|
||
To train a signal model (currently `PCARDAKDE`), run the following command after installing BciPy: | ||
|
||
`bcipy-train` | ||
|
||
- Use the help flag to see other available input options: `bcipy-train --help` | ||
- You can pass it attributes with flags, if desired. | ||
- Running without a window prompting for data session folder: | ||
- `bcipy-train -d path/to/data` | ||
- Running with data visualizations (ERPs, etc.): | ||
- `bcipy-train -v` | ||
- Running with data visualizations that do not show, but save to file: | ||
- `bcipy-train -s` | ||
- Running with balanced accuracy: | ||
- `bcipy-train --balanced-acc` | ||
- Running with alerts after each Task execution: | ||
- `bcipy-train --alert` | ||
- Running with custom parameters: | ||
- `bcipy-train -p "path/to/valid/parameters.json"` | ||
|
||
##### Visualize ERP data from a session with Target / Non-Target labels | ||
|
||
To generate plots that can be shown or saved after collection of data, run the following command after installing BciPy: | ||
|
||
`bcipy-erp-viz` | ||
|
||
- Use the help flag to see other available input options: `bcipy-erp-viz --help` | ||
- You can pass it attributes with flags, if desired. | ||
- Running without a window prompting for data session folder: | ||
- `bcipy-erp-viz -s path/to/data` | ||
- Running with data visualizations (ERPs, etc.): | ||
- `bcipy-erp-viz --show` | ||
- Running with data visualizations that do not show, but save to file: | ||
- `bcipy-erp-viz --save` | ||
- Running with custom parameters (default is in bcipy/parameters/parameters.json): | ||
- `bcipy-erp-viz -p "path/to/valid/parameters.json"` | ||
|
||
##### BciPy Simulator Usage | ||
|
||
The simulator can be run using the command line utility `bcipy-sim`. | ||
|
||
Ex. | ||
`bcipy-sim -d my_data_folder/ -p my_parameters.json -m my_models/ -n 5` | ||
|
||
Run `bcipy-sim --help` for documentation or see the README in the simulator module. | ||
|
||
- Use the help flag to see other available input options: `bcipy --help` | ||
|
||
##### Example Usage as a Package | ||
### Package Usage | ||
------------------- | ||
|
||
```python | ||
from bcipy.helpers import system_utils | ||
system_utils.get_system_info() | ||
``` | ||
|
||
#### Example Usage through the GUI | ||
### GUI Usage | ||
------------- | ||
|
||
Run the following command in your terminal to start the BciPy GUI: | ||
```sh | ||
|
@@ -95,16 +156,6 @@ make bci-gui | |
``` | ||
|
||
|
||
#### Simulator Usage | ||
|
||
The simulator can be run using the command line utility `bcipy-sim`. | ||
|
||
Ex. | ||
`bcipy-sim -d my_data_folder/ -p my_parameters.json -m my_models/ -n 5` | ||
|
||
Run `bcipy-sim --help` for documentation or see the README in the simulator module. | ||
|
||
|
||
## Glossary | ||
----------- | ||
|
||
|
@@ -150,7 +201,7 @@ This a list of the major modules and their functionality. Each module will conta | |
## Paradigms | ||
------------ | ||
|
||
See `bcipy/task/README.md` for more information on all supported paradigms and modes. The following are the supported and validated paradigms: | ||
See `bcipy/task/README.md` for more information on all supported paradigms, tasks, actions and modes. The following are the supported and validated paradigms: | ||
|
||
|
||
> RSVPKeyboard | ||
|
@@ -213,7 +264,6 @@ After running the above command, the recommended offset correction value will be | |
```bash | ||
# Let's say the recommneded offset value is 0.1 | ||
python bcipy/helpers/offset.py --offset "0.1" -p | ||
|
||
``` | ||
|
||
Alternately, if Make is installed, you may run the follow command to run offset determination and display the results: | ||
|
@@ -306,10 +356,11 @@ make type | |
|
||
|
||
### Contributions Welcome! | ||
-------------------------- | ||
|
||
If you want to be added to the development team slack or have additional questions, please reach out to us at [email protected]! | ||
|
||
### Contribution Guidelines | ||
#### Contribution Guidelines | ||
|
||
We follow and will enforce the contributor's covenant to foster a safe and inclusive environment for this open source software, please reference this link for more information: https://www.contributor-covenant.org/ | ||
|
||
|
@@ -325,7 +376,7 @@ Other guidelines: | |
|
||
See this resource for examples: http://docs.python-guide.org/en/latest/writing/style/ | ||
|
||
## Contributors | ||
### Contributors | ||
--------------- | ||
|
||
All contributions are greatly appreciated! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Looks like that was left over from a copy-paste.