Skip to content

Commit

Permalink
Merge pull request #148 from neurolib-dev/examples/meg_fitting_edit
Browse files Browse the repository at this point in the history
MEG example editing
  • Loading branch information
caglorithm authored Mar 4, 2021
2 parents 6ce0be4 + 3e3aa4b commit 86a2299
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
target-folder: 'predeploy'
token: ${{ secrets.DOC_ACCESS_TOKEN }}
branch: master
commit-message: 'PR predeployment'
commit-message: 'PR predeploy'
repository-name: neurolib-dev/neurolib-dev.github.io
- name: Deploy 🚀
if: github.event_name == 'push'
Expand Down
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ You are very welcome to implement your favorite neural mass model and contribute
* The `loadDefaultParams.py` file contains a function (`loadDefaultParams()`) which has the arguments `Cmat` for the structural connectivity matrix, `Dmat` for the delay matrix and `seed` for the seed of the random number generator. This function returns a dictionary (or `dotdict`, see `neurolib/utils/collections.py`) with all parrameters inside.
* The `timeIntegration.py` file which contains a `timeIntegration()` function which has the argument `params` coming from the previous step. Here, we need to prepare the numerical integration. We load all relevant parameters from the `params` dictionary and pass it to the main integration loop. The integration loop is written such that it can be accelerated by `numba` ([numba's page](https://numba.pydata.org/)) which speeds up the integration by a factor of around 1000.

## Contributing examples

We very much welcome example contributions since they help new users to learn how to make use of `neurolib`. They can include basic usage examples or tutorials of `neurolib`'s features, or a demonstration of how to solve a specific scientific task using neural mass models or whole-brain networks.

* Examples are provided as Jupyter Notebooks in the `/examples/` directory of the project repository.
* Notebooks should have a brief description of what they are trying to accomplish at the beginning.
* It is recommended to change the working directory to the root directory at the very beginning of the notebook (`os.chdir('..')`).
* Notebooks should be structured with different subheadings (Markdown style). Please also describe in words what you are doing in code.


## Contributing brain data

We have a few small datasets already in neurolib so everyone can start simulating right away. If you'd like to contribute more data to the project, please feel invited to do so. We're looking for more structural connectivity matrices and fiber length matrices in the MATLAB matrix `.mat` format (which can be loaded by `scipy.loadmat`). We also appreciate BOLD data, EEG data, or MEG data. Other modalities could be useful as well. Please be aware that the data has to be in a parcellated form, i.e., the brain areas need to be organized according to an atlas like the AAL2 atlas (or others).
File renamed without changes.
216 changes: 121 additions & 95 deletions examples/example-3-meg-functional-connectivity.ipynb

Large diffs are not rendered by default.

0 comments on commit 86a2299

Please sign in to comment.