forked from BrkRaw/brkraw
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'BrkRaw:main' into main
- Loading branch information
Showing
18 changed files
with
313 additions
and
128 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.github | ||
|
||
*.pyc | ||
|
||
env | ||
|
||
**/__pycache__ | ||
**/.pytest_cache | ||
|
||
.idea/** | ||
|
||
**/dist | ||
**/build | ||
**/*.egg-info* | ||
|
||
tests/* | ||
paper | ||
|
||
.DS_Store |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[flake8] | ||
exclude = | ||
.git, | ||
__pycache__, | ||
build, | ||
dist, | ||
env, | ||
venv, | ||
max-line-length = 127 | ||
max-complexity=10 |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# Documentation | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly |
25 changes: 13 additions & 12 deletions
25
.github/workflows/autotest.yml → .github/workflows/flake8.yml
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: test | ||
|
||
on: | ||
# this workflow triggered on below condition [push, pull_request] | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
# cancel previous similar workflow runs | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test_cli: | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up python ${{ matrix.python-version }} | ||
|
||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install package | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
- name: Version and help | ||
run: | | ||
brkraw --version | ||
brkraw --help | ||
- name: "smoke end-to-end test: use CLI on tutorial data" | ||
run: make demo | ||
|
||
|
||
test_tutorial: | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up python ${{ matrix.python-version }} | ||
|
||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install .[dev] | ||
- name: Install tutorial | ||
run: make tests/tutorials | ||
|
||
- name: Test tutorial notebook | ||
run: | | ||
python -m pytest --nbmake tests/tutorials/JupyterNotebooks/01_GettingStarted.ipynb | ||
tree tests/tutorials/raw |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: validation | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
validate_cff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check whether the citation metadata from CITATION.cff is valid | ||
uses: citation-file-format/cffconvert-github-action@2.0.0 | ||
with: | ||
args: --validate | ||
|
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 |
---|---|---|
|
@@ -8,8 +8,7 @@ ui/styles/*.css | |
dist | ||
build | ||
*.pid | ||
test | ||
test/* | ||
*.egg-info | ||
*.egg-info/* | ||
.DS_Store | ||
.DS_Store | ||
tests/tutorials |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
cff-version: 1.2.0 | ||
|
||
title: "brkraw" | ||
|
||
version: "0.3.10" | ||
|
||
abstract: Bruker PvDataset Loader | ||
|
||
message: "If you use this software, please cite it as below." | ||
|
||
repository-code: "https://github.com/BrkRaw/brkraw" | ||
|
||
identifiers: | ||
- description: This is the collection of archived snapshots of all releases | ||
type: doi | ||
value: "10.5281/zenodo.245546149" | ||
|
||
contact: | ||
- email: shlee@unc.edu | ||
family-names: SungHo | ||
given-names: Lee | ||
|
||
authors: | ||
- email: shlee@unc.edu | ||
family-names: SungHo | ||
given-names: Lee | ||
|
||
- email: banwoomi@unc.edu | ||
family-names: Woomi | ||
given-names: Ban | ||
|
||
- family-names: Dumas | ||
given-names: Jaiden | ||
|
||
- family-names: Devenyi | ||
given-names: Gabriel A. | ||
|
||
- email: shihy@neurology.unc.edu | ||
family-names: Yen-Yu | ||
given-names: Ian Shih | ||
|
||
license: GPL-3.0 | ||
|
||
keywords: | ||
- bruker | ||
- data_handler | ||
- converter | ||
- administrator_tool | ||
- brain imaging data structure |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,17 @@ | ||
Here is how to contribute. | ||
# Contributing | ||
|
||
TODO: | ||
When contributing to this repository, please first discuss the change you wish to make via issue, | ||
email, or any other method with the owners of this repository before making a change. | ||
|
||
Please note we have a code of conduct, please follow it in all your interactions with the project. | ||
|
||
## Pull Request Process | ||
|
||
1. Ensure any install or build dependencies are removed before the end of the layer when doing a | ||
build. | ||
2. Update the README.md with details of changes to the interface, this includes new environment | ||
variables, exposed ports, useful file locations and container parameters. | ||
3. Increase the version numbers in any examples files and the README.md to the new version that this | ||
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/). | ||
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you | ||
do not have permission to do that, you may request the second reviewer to merge it for you. |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
clean: | ||
rm -rf tests/tutorials | ||
|
||
tests/tutorials: | ||
git clone https://github.com/BrkRaw/tutorials.git tests/tutorials | ||
|
||
tests/tutorials/SampleData/20190724_114946_BRKRAW_1_1: tests/tutorials | ||
unzip -uq tests/tutorials/SampleData/20190724_114946_BRKRAW_1_1.zip -d tests/tutorials/SampleData/ | ||
|
||
tests/tutorials/bids_map.csv: tests/tutorials/SampleData/20190724_114946_BRKRAW_1_1 | ||
brkraw bids_helper tests/tutorials/SampleData/20190724_114946_BRKRAW_1_1 \ | ||
tests/tutorials/bids_map | ||
|
||
tests/tutorials/raw: tests/tutorials/bids_map.csv | ||
brkraw bids_convert tests/tutorials/SampleData/20190724_114946_BRKRAW_1_1 \ | ||
tests/tutorials/bids_map.csv \ | ||
--output tests/tutorials/raw | ||
|
||
demo: tests/tutorials | ||
brkraw info tests/tutorials/SampleData/20190724_114946_BRKRAW_1_1.zip | ||
make tests/tutorials/raw |
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.