Skip to content

Commit 76e9aed

Browse files
author
Jakub Kaczmarzyk
committed
Merge remote-tracking branch 'upstream/master' into add/fs-conform
2 parents b897935 + d8cf1a9 commit 76e9aed

File tree

252 files changed

+13724
-3365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+13724
-3365
lines changed

.azure-pipelines/windows.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
parameters:
3+
name: ''
4+
vmImage: ''
5+
matrix: []
6+
7+
jobs:
8+
- job: ${{ parameters.name }}
9+
pool:
10+
vmImage: ${{ parameters.vmImage }}
11+
variables:
12+
EXTRA_WHEELS: "https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
13+
DEPENDS: numpy scipy matplotlib h5py pydicom
14+
strategy:
15+
matrix:
16+
${{ insert }}: ${{ parameters.matrix }}
17+
18+
steps:
19+
- task: UsePythonVersion@0
20+
inputs:
21+
versionSpec: '$(PYTHON_VERSION)'
22+
addToPath: true
23+
architecture: '$(PYTHON_ARCH)'
24+
- script: |
25+
echo %PYTHONHASHSEED%
26+
displayName: 'Display hash seed'
27+
- script: |
28+
python -m pip install --upgrade pip setuptools>=30.3.0 wheel
29+
displayName: 'Update build tools'
30+
- script: |
31+
python -m pip install --find-links %EXTRA_WHEELS% %DEPENDS%
32+
python -m pip install nose mock coverage codecov pytest
33+
displayName: 'Install dependencies'
34+
- script: |
35+
python -m pip install .
36+
SET NIBABEL_DATA_DIR=%CD%\\nibabel-data
37+
displayName: 'Install nibabel'
38+
- script: |
39+
mkdir for_testing
40+
cd for_testing
41+
cp ../.coveragerc .
42+
nosetests --with-doctest --with-coverage --cover-package nibabel nibabel
43+
displayName: 'Nose tests'
44+
- script: |
45+
cd for_testing
46+
codecov
47+
displayName: 'Upload To Codecov'
48+
env:
49+
CODECOV_TOKEN: $(CODECOV_TOKEN)

.coveragerc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ include = */nibabel/*, */nisext/*
55
omit =
66
*/externals/*
77
*/benchmarks/*
8-
*/ast.py
9-
*/codegen.py
8+
*/tests/*
9+
nibabel/_version.py

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nibabel/COMMIT_INFO.txt export-subst
1+
nibabel/_version.py export-subst

.github/CODE_OF_CONDUCT.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Community Guidelines
2+
3+
Nibabel is a [NIPY](https://nipy.org) project, and we strive to adhere to the
4+
[NIPY Community Code](https://nipy.org/conduct.html), reproduced below.
5+
6+
The NIPY community is a community of practice devoted to the use of the Python programming language
7+
in the analysis of neuroimaging data. The following code of conduct is a guideline for our behavior
8+
as we participate in this community.
9+
10+
It is based on, and heavily inspired by a reading of the Python community code of conduct, the
11+
Apache foundation code of conduct, the Debian code of conduct, and the Ten Principles of Burning
12+
Man.
13+
14+
## The code of conduct for the NIPY community
15+
16+
The Neuroimaging in Python (NIPY) community is made up of members with a diverse set of skills,
17+
personalities, background, and experiences. We welcome these differences because they are the
18+
source of diverse ideas, solutions and decisions about our work. Decisions we make affect users,
19+
colleagues, and through scientific results, the general public. We take these consequences
20+
seriously when making decisions. When you are working with members of the community, we encourage
21+
you to follow these guidelines, which help steer our interactions and help keep NIPY a positive,
22+
successful, and growing community.
23+
24+
### A member of the NIPY community is:
25+
26+
#### Open
27+
28+
Members of the community are open to collaboration. Be it on the reuse of data, on the
29+
implementation of methods, on finding technical solutions, establishing best practices, and
30+
otherwise. We are accepting of all who wish to take part in our activities, fostering an
31+
environment where anyone can participate and everyone can make a difference.
32+
33+
#### Be collaborative!
34+
35+
Our work will be used by other people, and in turn we will depend on the work of others. When we
36+
make something for the benefit of others, we are willing to explain to others how it works, so that
37+
they can build on the work to make it even better. We are willing to provide constructive criticism
38+
on the work of others and accept criticism of our own work, as the experiences and skill sets of
39+
other members contribute to the whole of our efforts.
40+
41+
#### Be inquisitive!
42+
43+
Nobody knows everything! Asking questions early avoids many problems later, so questions are
44+
encouraged, though they may be directed to the appropriate forum. Those who are asked should be
45+
responsive and helpful, within the context of our shared goal of improving neuroimaging practice.
46+
47+
#### Considerate
48+
49+
Members of the community are considerate of their peers. We are thoughtful when addressing the
50+
efforts of others, keeping in mind that often-times the labor was completed simply for the good of
51+
the community. We are attentive in our communications, whether in person or online, and we are
52+
tactful when approaching differing views.
53+
54+
#### Be careful in the words that you choose:
55+
56+
We value courtesy, kindness and inclusiveness in all our interactions. Therefore, we take
57+
responsibility for our own speech. In particular, we avoid:
58+
59+
* Personal insults.
60+
* Violent threats or language directed against another person.
61+
* Sexist, racist, or otherwise discriminatory jokes and language.
62+
* Any form of sexual or violent material.
63+
* Sharing private content, such as emails sent privately or non-publicly, or unlogged forums such
64+
as IRC channel history.
65+
* Excessive or unnecessary profanity.
66+
* Repeated harassment of others. In general, if someone asks you to stop, then stop.
67+
* Advocating for, or encouraging, any of the above behaviour.
68+
69+
#### Try to be concise in communication
70+
71+
Keep in mind that what you write once will be read by many others. Writing a short email means
72+
people can understand the conversation as efficiently as possible. Even short emails should always
73+
strive to be empathetic, welcoming, friendly and patient. When a long explanation is necessary,
74+
consider adding a summary.
75+
76+
Try to bring new ideas to a conversation, so that each message adds something unique to the
77+
conversation. Keep in mind that, when using email, the rest of the thread still contains the other
78+
messages with arguments that have already been made.
79+
80+
Try to stay on topic, especially in discussions that are already fairly long and complex.
81+
82+
#### Respectful
83+
84+
Members of the community are respectful. We are respectful of others, their positions, their
85+
skills, their commitments, and their efforts. We are respectful of the volunteer and professional
86+
efforts that permeate the NIPY community. We are respectful of the processes set forth in the
87+
community, and we work within them. When we disagree, we are courteous and kind in raising our
88+
issues.
89+
90+
## Incident Reporting
91+
92+
We put great value on respectful, friendly and helpful communication.
93+
94+
If you feel that any of our Nibabel communications lack respect, or are unfriendly or unhelpful,
95+
please try the following steps:
96+
97+
* If you feel able, please let the person who has sent the email or comment that you found it
98+
disrespectful / unhelpful / unfriendly, and why;
99+
100+
* If you don't feel able to do that, or that didn't work, please contact Chris Markiewicz directly
101+
by email (<[email protected]>), and he will do his best to resolve it.
102+
If you don't feel comfortable contacting Chris, please email Matthew Brett
103+
(<[email protected]>) instead.
104+
105+
## Attribution
106+
107+
The vast majority of the above was taken from the NIPY Code of Conduct.

.github/CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Contributing to NiBabel
2+
3+
Welcome to the NiBabel repository!
4+
We're excited you're here and want to contribute.
5+
6+
Please see the [NiBabel Developer Guidelines][link_devguide] on our
7+
on our [documentation website][link_docs].
8+
9+
These guidelines are designed to make it as easy as possible to get involved.
10+
If you have any questions that aren't discussed in our documentation, or it's
11+
difficult to find what you're looking for, please let us know by opening an
12+
[issue][link_issues]!
13+
14+
[link_docs]: https://nipy.org/nibabel
15+
[link_devguide]: https://nipy.org/nibabel/devel/devguide.html
16+
[link_issues]: https://github.com/poldracklab/fmriprep/issues

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
.project
1717
.pydevproject
1818
*.py.orig
19+
.DS_Store
1920

2021
# Not sure what the next one is for
2122
*.kpf
@@ -83,3 +84,4 @@ Thumbs.db
8384
doc/source/reference
8485
venv/
8586
.buildbot.patch
87+
.vscode

.gitmodules

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
url = git://github.com/matthew-brett/nitest-minc2.git
77
[submodule "nipy-ecattest"]
88
path = nibabel-data/nipy-ecattest
9-
url = https://github.com/freec84/nipy-ecattest
9+
url = https://github.com/effigies/nipy-ecattest
1010
[submodule "nibabel-data/nitest-freesurfer"]
1111
path = nibabel-data/nitest-freesurfer
1212
url = https://bitbucket.org/nipy/nitest-freesurfer.git
@@ -16,3 +16,6 @@
1616
[submodule "nibabel-data/nitest-cifti2"]
1717
path = nibabel-data/nitest-cifti2
1818
url = https://github.com/demianw/nibabel-nitest-cifti2.git
19+
[submodule "nibabel-data/nitest-dicom"]
20+
path = nibabel-data/nitest-dicom
21+
url = https://github.com/effigies/nitest-dicom

.mailmap

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,56 @@
77
#
88
# This file is up-to-date if the command git log --format="%aN <%aE>" | sort -u
99
# gives no duplicates.
10-
Michael Hanke <[email protected]> <mhanke-guest@82381867-18eb-0310-98a2-9474e637aba2>
11-
12-
Yaroslav Halchenko <[email protected]> <yoh-guest@82381867-18eb-0310-98a2-9474e637aba2>
10+
Alexandre Gramfort <[email protected]> Alexandre Gramfort <[email protected]>
11+
Ariel Rokem <[email protected]> arokem <[email protected]>
12+
B. Nolan Nichols <[email protected]> Nolan Nichols <[email protected]>
13+
Basile Pinsard <[email protected]> bpinsard <[email protected]>
14+
Basile Pinsard <[email protected]> bpinsard <[email protected]>
15+
Ben Cipollini <[email protected]> Ben Cipollini <[email protected]>
1316
Bertrand Thirion <[email protected]> bthirion <[email protected]>
14-
Stephan Gerhard <[email protected]> Stephan Gerhard <git@github.com>
17+
Cameron Riddell <[email protected]> <[email protected].github.com>
1518
Christian Haselgrove <[email protected]> Christian Haselgrove <[email protected]>
19+
Christopher J. Markiewicz <[email protected]> Chris Johnson <[email protected]>
20+
Christopher J. Markiewicz <[email protected]> Chris Markiewicz <[email protected]>
21+
Christopher J. Markiewicz <[email protected]> Chris Markiewicz <[email protected]>
22+
Christopher J. Markiewicz <[email protected]> Christopher J. Markiewicz <[email protected]>
23+
Christopher J. Markiewicz <[email protected]> Christopher J. Markiewicz <[email protected]>
1624
Cindee Madison <[email protected]> CindeeM <[email protected]>
1725
Cindee Madison <[email protected]> cindeem <[email protected]>
18-
Ian Nimmo-Smith <[email protected]> Ian Nimmo-Smith <[email protected]>
19-
Jean-Baptiste Poline <[email protected]> jbpoline <[email protected]>
26+
Demian Wassermann <[email protected]> Demian Wassermann <[email protected]>
27+
Dimitri Papadopoulos Orfanos <[email protected]> Dimitri Papadopoulos <[email protected]>
28+
Eric Larson <[email protected]> Eric89GXL <[email protected]>
29+
Eric Larson <[email protected]> larsoner <[email protected]>
30+
Fernando Pérez-García <[email protected]> Fernando <[email protected]>
2031
Félix C. Morency <[email protected]> Felix C. Morency <[email protected]>
2132
Félix C. Morency <[email protected]> Félix C. Morency <[email protected]>
22-
Krish Subramaniam <[email protected]> Krish Subramaniam <[email protected]>
23-
Eric Larson <[email protected]> Eric89GXL <[email protected]>
24-
Alexandre Gramfort <[email protected]> Alexandre Gramfort <[email protected]>
2533
Gael Varoquaux <[email protected]> GaelVaroquaux <[email protected]>
26-
Kevin S. Hahn <[email protected]> Kevin S. Hahn <[email protected]>
27-
Basile Pinsard <[email protected]> bpinsard <[email protected]>
28-
Basile Pinsard <[email protected]> bpinsard <[email protected]>
29-
30-
Ben Cipollini <[email protected]> Ben Cipollini <[email protected]>
31-
Chris Markiewicz <[email protected]> Christopher J. Markiewicz <[email protected]>
32-
Chris Markiewicz <[email protected]> Christopher J. Markiewicz <[email protected]>
33-
Chris Markiewicz <[email protected]> Christopher J. Markiewicz <[email protected]>
34-
Chris Markiewicz <[email protected]> Chris Johnson <[email protected]>
34+
Gregory R. Lee <[email protected]> Gregory R. Lee <[email protected]>
35+
Ian Nimmo-Smith <[email protected]> Ian Nimmo-Smith <[email protected]>
3536
Jaakko Leppäkangas <[email protected]> jaeilepp <[email protected]>
36-
Ariel Rokem <[email protected]> arokem <[email protected]>
37-
Oliver P. Hinds <[email protected]> ohinds <[email protected]>
38-
Marc-Alexandre Côté <[email protected]> Marc-Alexandre Cote <[email protected]>
39-
Satrajit Ghosh <[email protected]> Satrajit Ghosh <[email protected]>
4037
Jasper J.F. van den Bosch <[email protected]> Jasper <[email protected]>
41-
Gregory R. Lee <[email protected]> Gregory R. Lee <[email protected]>
42-
Demian Wassermann <[email protected]> Demian Wassermann <[email protected]>
38+
Jean-Baptiste Poline <[email protected]> jbpoline <[email protected]>
39+
Jon Haitz Legarreta <[email protected]> Jon Haitz Legarreta Gorroño <[email protected]>
40+
Kesshi Jordan <[email protected]> kesshijordan <[email protected]>
41+
Kevin S. Hahn <[email protected]> Kevin S. Hahn <[email protected]>
42+
Konstantinos Raktivan <[email protected]> constracti <[email protected]>
43+
Krish Subramaniam <[email protected]> Krish Subramaniam <[email protected]>
44+
Krzysztof J. Gorgolewski <[email protected]>
45+
Krzysztof J. Gorgolewski <[email protected]> <[email protected]>
46+
Marc-Alexandre Côté <[email protected]> Marc-Alexandre Cote <[email protected]>
47+
Mathias Goncalves <[email protected]> mathiasg <[email protected]>
48+
Matthew Cieslak <[email protected]> Matt Cieslak <[email protected]>
49+
Michael Hanke <[email protected]> <mhanke-guest@82381867-18eb-0310-98a2-9474e637aba2>
50+
51+
Michiel Cottaar <[email protected]> Michiel Cottaar <[email protected]>
52+
53+
Oliver P. Hinds <[email protected]> ohinds <[email protected]>
54+
Oscar Esteban <[email protected]>
4355
Paul McCarthy <[email protected]> Paul McCarthy <[email protected]>
56+
Satrajit Ghosh <[email protected]> Satrajit Ghosh <[email protected]>
57+
Serge Koudoro <[email protected]> skoudoro <[email protected]>
58+
Stephan Gerhard <[email protected]> Stephan Gerhard <[email protected]>
59+
Thomas Roos <[email protected]> Roosted7 <[email protected]>
60+
Venkateswara Reddy Reddam <[email protected]> R3DDY97 <[email protected]>
61+
Yaroslav O. Halchenko <[email protected]> <yoh-guest@82381867-18eb-0310-98a2-9474e637aba2>
62+
Yaroslav O. Halchenko <[email protected]> Yaroslav Halchenko <[email protected]>

.pep8speaks.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
scanner:
2+
diff_only: True # Only show errors caused by the patch
3+
linter: flake8
4+
5+
message: # Customize the comment made by the bot
6+
opened: # Messages when a new PR is submitted
7+
header: "Hello @{name}, thank you for submitting the Pull Request!"
8+
footer: "To test for issues locally, `pip install flake8` and then run `flake8 nibabel`."
9+
updated: # Messages when new commits are added to the PR
10+
header: "Hello @{name}, Thank you for updating!"
11+
footer: "To test for issues locally, `pip install flake8` and then run `flake8 nibabel`."
12+
no_errors: "Cheers! There are no style issues detected in this Pull Request. :beers: "

0 commit comments

Comments
 (0)