Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Fix SimpleRegressionResults #174

Open
wants to merge 273 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
03b4214
introduced safeF contrast
bthirion Apr 6, 2018
337365a
Cleaning
bthirion Apr 6, 2018
ccd6928
Improved formula for SafeF
bthirion Apr 6, 2018
bd0c920
changed the F contrast to the new one
bthirion Apr 6, 2018
d66c474
removed temporary example
bthirion Apr 6, 2018
a0a6ddc
added docstring for dim in contrast class
bthirion Apr 8, 2018
2efe691
sqeeze variance
bthirion May 29, 2018
2c0b01b
Merge pull request #177 from bthirion/F-test
bthirion May 30, 2018
6bf739e
corrected wrong voxel selection in spm_plot_auditory
chrplr Jul 20, 2018
8615a3c
expanding intro doc
chrplr Jul 25, 2018
db4a9aa
typo in nipype
chrplr Jul 27, 2018
6b02f11
intro & first tuto
chrplr Jul 27, 2018
a0b716b
ENH: Replace DataFrame.as_matrix() with .values
effigies Aug 3, 2018
e5dca16
Merge pull request #193 from effigies/dataframe_values
bthirion Aug 3, 2018
2e3ad9b
Merge pull request #187 from chrplr/bug-plot-spm-auditory
bthirion Aug 13, 2018
9dc2a15
Created CircleCI 2.0 config.yml, decactivated v1.0 circle.yml
kchawla-pi Aug 28, 2018
f0b1d77
Added patsy & boto3 to the installed dependencies
kchawla-pi Aug 28, 2018
8f44bd4
Changed second level model not to impose an intercept in thed esign m…
bthirion Aug 28, 2018
e68ca74
Added corresponding test
bthirion Aug 28, 2018
dc39f31
Added path to backreferences_dir
kchawla-pi Aug 29, 2018
8dd8548
Updated miniconda installer to miniconda3 to fix Pandas incorrect ver…
kchawla-pi Aug 29, 2018
1f299f0
Updated dependencies+miniconda- align with NiLearn, fix incorrect Pan…
kchawla-pi Aug 30, 2018
47711fd
Bumped libgfortran to 3.0 for compatiblity with other dependency's ve…
kchawla-pi Aug 30, 2018
e03e3b1
Fixed miniconda path for circleci builds
kchawla-pi Aug 30, 2018
1bcaffe
Updated most of the dependency's versions in the README
kchawla-pi Aug 30, 2018
77d43b0
Removed `strict` option from CircleCI make html to complete CCi v2 tr…
kchawla-pi Aug 31, 2018
8d5d6d4
Updated the dependency versions referred to in code & docs
kchawla-pi Aug 31, 2018
e349bd9
Updated 'What's New'
kchawla-pi Aug 31, 2018
11e89d7
Updated release version number in 'What's New'
kchawla-pi Aug 31, 2018
404dc08
Removed unnecessary try block after numpy v>=1.00
kchawla-pi Aug 31, 2018
5ad5a1d
Merge pull request #205 from kchawla-pi/version-bumps
bthirion Aug 31, 2018
4ffaaad
Bumped up minimum versions of dependencies, aligning with NiLearn, fi…
kchawla-pi Aug 31, 2018
ba03bab
Removed CircleCI 1.0 config file after updgrading to CircleCI 2.0
kchawla-pi Aug 31, 2018
b00fb9d
Merge pull request #202 from kchawla-pi/circleci2.0
bthirion Aug 31, 2018
4607c04
Added a second-level two sample test example
bthirion Aug 31, 2018
f038342
Variable value is correctly interpolated into the warning text
kchawla-pi Sep 3, 2018
5c32ab3
Merge pull request #208 from kchawla-pi/warn-correction
bthirion Sep 3, 2018
da4897b
exposed oversampling parameter
bthirion Sep 5, 2018
0da21a4
typos corrected in intro
chrplr Sep 7, 2018
3ed2c3c
updated introduction
bthirion Sep 7, 2018
7372a3b
added figure
bthirion Sep 7, 2018
05f6b4e
removed extracting script that blocks compilation
bthirion Sep 7, 2018
27740fb
Completed the single_run script with more explanations
bthirion Sep 8, 2018
c77dd35
fixed doc geenration
bthirion Sep 9, 2018
eb73ce3
Removed the unnecessary "General Examples" section
kchawla-pi Sep 12, 2018
632d720
Merge pull request #218 from kchawla-pi/example-3.1.2
bthirion Sep 12, 2018
5ed136f
Merge pull request #203 from bthirion/intercept_optional_in_second_le…
bthirion Sep 12, 2018
58bd0e9
Revert "Removed the unnecessary "General Examples" section"
bthirion Sep 12, 2018
4b2f42f
Merge pull request #220 from nistats/revert-218-example-3.1.2
bthirion Sep 12, 2018
be8ccfa
Completed the example
bthirion Sep 12, 2018
c058d0a
Additional improvements
bthirion Sep 12, 2018
2044167
New PR due to previous PR (#218) being accidentally merged
kchawla-pi Sep 13, 2018
0b8c45a
Merge branch 'master' into example-3.1.2
kchawla-pi Sep 13, 2018
0246988
Merge PR #222 Removed the unnecessary "General Examples" section
kchawla-pi Sep 13, 2018
278295c
Fixed typos
bthirion Sep 13, 2018
0f456d0
Added Oasis example
bthirion Aug 13, 2018
2b5da5d
First instance of surface-based example working
bthirion Aug 15, 2018
f06c221
Example working, 2 hemispheres
bthirion Aug 24, 2018
5b639d5
bumped software requirements
bthirion Aug 26, 2018
ea1735e
nilearn 0.4.0
bthirion Aug 26, 2018
d1eba7b
Struggling with fetch_fsaverage
bthirion Aug 26, 2018
18a408f
removed unused imports
bthirion Aug 28, 2018
fac40b4
decluttering the figures
bthirion Aug 28, 2018
b05a803
Added wrapper function to read experimental paradigm from tsv files
kchawla-pi Sep 19, 2018
089b26a
Removed unnecessary wrapper functions to read paradigm from tsv,csv f…
kchawla-pi Sep 20, 2018
e86c70e
Merge branch 'remote/master' into support-tsv
kchawla-pi Sep 20, 2018
48ef506
Added an F test
bthirion Sep 20, 2018
dbf6ff4
changed default oversampling to 50
bthirion Sep 21, 2018
43ff1c6
Choosing plotting coordinates
bthirion Sep 21, 2018
a1d2bbb
Removed unnecessary wrapper functions to read paradigm from tsv,csv f…
kchawla-pi Sep 21, 2018
96e32f3
Added function to raise error if events file doesn't use tabs or commas
kchawla-pi Sep 21, 2018
0527eff
Merge remote-tracking branch 'origin/support-tsv' into support-tsv
kchawla-pi Sep 21, 2018
1875848
Abandoned use of pathlib to maintain compatibility with older python …
kchawla-pi Sep 21, 2018
01379db
doc fixes
bthirion Sep 22, 2018
e68abe0
Merge pull request #194 from bthirion/oasis
bthirion Sep 23, 2018
c7cb7dd
Starting point for py3 to py2/3 conversion; Some reformatting
kchawla-pi Sep 24, 2018
3f49297
Added replacement function to raise error if events files use invalid…
kchawla-pi Sep 25, 2018
70edf56
Merge pull request #192 from chrplr/chris-doc
bthirion Sep 26, 2018
736de5d
Merge pull request #196 from bthirion/pedagogical_surface
bthirion Sep 26, 2018
ef1c2de
Renamed + Only first row is used to determine BIDS compliance of even…
kchawla-pi Sep 26, 2018
fcd2697
Renamed function parameter _not_test to _raise_delimiter_errors_only
kchawla-pi Sep 26, 2018
4310a88
Improved comments
kchawla-pi Sep 26, 2018
0ba4344
_verify_events_file_uses_tab_separators() returns a List[List[events,…
kchawla-pi Sep 26, 2018
6980749
Modified comments
kchawla-pi Sep 26, 2018
5a407fa
Added unit tests for nistats._utils._verify_events_file_uses_tab_sepa…
kchawla-pi Sep 27, 2018
1bd02e2
Corrected unit test filename to test_verify_events_file_uses_tab_sepa…
kchawla-pi Sep 27, 2018
3455172
Moved test file from nistats/tests/unit_tests/ to nistats/tests/
kchawla-pi Oct 1, 2018
0c2c9eb
Started populating the branch
bthirion Sep 13, 2018
7e3a928
Improved the script
bthirion Sep 13, 2018
6993b68
Added trials-and error on hrf model
bthirion Sep 15, 2018
c833e49
completed script, removed FIR part
bthirion Sep 15, 2018
8c7a797
small improvement to better illustrate masking
bthirion Sep 19, 2018
94d36c6
Some cleaning in the docs
bthirion Oct 1, 2018
8abde53
first-level localizer fMRI dataset events file is now BIDS compliant
kchawla-pi Oct 1, 2018
fdcc218
utils._verify_events_file_uses_tab_separators() no longer returns any…
kchawla-pi Oct 1, 2018
0bf3715
Events file for localizer_first_level is no longer modified in/for ex…
kchawla-pi Oct 2, 2018
24fd8e6
A bunch of updates in the tutorial
bthirion Oct 2, 2018
b5a0293
localizer_first_level events file not modified if already BIDS compliant
kchawla-pi Oct 2, 2018
69c78ce
Renamed _make_localizer_first_level_paradigm_file_bids_compliant()
kchawla-pi Oct 2, 2018
749af04
Renamed tests/test_make_localizer_first_level_paradigm_file_bids_comp…
kchawla-pi Oct 2, 2018
10a82a2
Merge pull request #228 from kchawla-pi/support-tsv
bthirion Oct 2, 2018
9c2a3a3
Merge branch 'master' (withtsv verify) into bids-compliant-fetchers
kchawla-pi Oct 2, 2018
00a3a6b
BIDS compliance checked in fetcher by _verify_events_file_uses_tab_se…
kchawla-pi Oct 2, 2018
4b9f3a7
slightly improving readability of the example
bthirion Oct 2, 2018
80f19b1
moving plot_bids_feature to another directory
bthirion Oct 2, 2018
de81a33
Cleaned examples
bthirion Oct 2, 2018
4c81d84
remvoed localizer analysis as it is redundant with tutorial example
bthirion Oct 2, 2018
74261e6
Make the SPM multimodal faces example more pedagogical
bthirion Oct 2, 2018
2ca1c4e
Small doc improvements on examples
bthirion Oct 2, 2018
5483221
A bunch of typose
bthirion Oct 3, 2018
c1e0220
Misc improvements of second-level examples
bthirion Oct 3, 2018
2077f49
some changes on examples details
bthirion Oct 3, 2018
3999a72
Refactored datasets.fetch_spm_auditory(); It now creates its own even…
kchawla-pi Oct 3, 2018
df13582
Added unit test for datasets._make_spm_auditory_events_file() in nist…
kchawla-pi Oct 3, 2018
b93152a
Modified example to work with BIDS events file for spm_auditory dataset
kchawla-pi Oct 3, 2018
7fb6d7f
Removed test of filename check, since it doesn't work in a CI environ…
kchawla-pi Oct 3, 2018
041c136
Merge pull request #209 from bthirion/expose-oversampling
bthirion Oct 3, 2018
2c6c249
Refactored events filepath creation
kchawla-pi Oct 3, 2018
68c223f
Moved test_make_bids_compliant_locizer & test_make_spm_auditory to te…
kchawla-pi Oct 4, 2018
e8c85e5
Added another second-level example
bthirion Sep 5, 2018
8443b2f
Improved the example
bthirion Oct 4, 2018
3744764
Tweaked function names & docstrings
kchawla-pi Oct 4, 2018
172ebcd
Ad how fix of 4D image problem
bthirion Oct 4, 2018
613a083
Merge pull request #232 from bthirion/fix-first_level_model-doc
bthirion Oct 4, 2018
0e26092
Refactored datasets.fetch_spm_multimodal_fmri()
kchawla-pi Oct 4, 2018
615d45d
added output_image argument to plot_design_matrix
bthirion Oct 4, 2018
3232db9
Attempt to fix the plt error
bthirion Oct 4, 2018
bd967d7
Added the feature to plot_contrast_matrix +fixes
bthirion Oct 4, 2018
1edf459
removed unused diaply variable
bthirion Oct 4, 2018
5a53caa
Added an example in the tutorial section
bthirion Oct 4, 2018
873bb76
datasets.fetch_spm_multimodal_fmri() generates events.tsv files; warn…
kchawla-pi Oct 4, 2018
77701c9
Merge branch 'master' into bids-compliant-fetchers
kchawla-pi Oct 4, 2018
eed159f
Merge pull request #212 from bthirion/non-trivial_second-level_example
bthirion Oct 5, 2018
9727fec
MAINT: Anaconda install requirements
KamalakerDadi Oct 5, 2018
6addef0
Removed events data generating code from example plot_spm_multimodal_…
kchawla-pi Oct 5, 2018
e85d251
DOC: Fix links in front end gallery
KamalakerDadi Oct 5, 2018
50a4908
tsv and csv files are now correctly loaded as pandas dataframe
kchawla-pi Oct 5, 2018
b1b859a
Example uses pd.read_table() for .tsv, as has correct default args; m…
kchawla-pi Oct 5, 2018
04977e4
mix fixes
bthirion Oct 5, 2018
f5ca47c
Merge pull request #231 from bthirion/more-tutorials
bthirion Oct 5, 2018
a8f04a2
changed the API and docstring of map_threshold
bthirion Oct 3, 2018
598f1fa
Further changes to threhsolding API
bthirion Oct 4, 2018
1448f52
Some fixes in docstrings
bthirion Oct 5, 2018
1e4ac91
last fix
bthirion Oct 5, 2018
bb3e9b1
Merge pull request #245 from bthirion/plot_design_matrix_output
bthirion Oct 5, 2018
6d9391d
Further example fix
bthirion Oct 5, 2018
d156f22
Merge branch 'master'; reslved merge conflicts- kept some code cleanups
kchawla-pi Oct 6, 2018
84de0d4
Fixed error due to improper read of the new BIDS compliant events file
kchawla-pi Oct 6, 2018
f518963
Merge pull request #242 from bthirion/thresholding-api
bthirion Oct 6, 2018
7523231
Changed minimuum numpy ver to 1.11.0 for NiLearn compatibility
kchawla-pi Oct 7, 2018
4ca0796
Merge pull request #238 from kchawla-pi/bids-compliant-fetchers
bthirion Oct 7, 2018
3d81797
Merge pull request #244 from bthirion/4d-input
bthirion Oct 7, 2018
22ca92e
Merge pull request #250 from KamalakerDadi/fix_installation_instructions
bthirion Oct 7, 2018
616c502
Merge pull request #251 from KamalakerDadi/fix_frontend
bthirion Oct 7, 2018
2e1dfc9
Fix wrong paradigm key check
rschmaelzle Sep 27, 2018
06f2723
Fix paradigm key checks for duration, trial_type, modulation
rschmaelzle Sep 28, 2018
2b061b2
correcting mistake re: trial type inclusion in paradigm check
rschmaelzle Sep 28, 2018
d568525
add duration field to test-dataframes for paradigm & design matrix cr…
rschmaelzle Oct 4, 2018
c0f8805
renaming duration-> durations for clarity, and adding 'duration' to p…
rschmaelzle Oct 4, 2018
547e6a2
started to fix the tests
bthirion Oct 4, 2018
81e9895
Fixed typo
bthirion Oct 4, 2018
15367ff
Updated examples
bthirion Oct 5, 2018
3fa7e0a
Conflict merges with current master + a few fixes
bthirion Oct 5, 2018
fc9441f
Another fix
bthirion Oct 5, 2018
6fe9daa
protocols bids-compliant again
bthirion Oct 7, 2018
4dc07ce
fixed failing test
bthirion Oct 7, 2018
7e3a797
plot_localizer analysis removed, because it is redundant with other e…
bthirion Oct 7, 2018
84fe715
Merge pull request #236 from nomcomm/fix-paradigm-check
bthirion Oct 7, 2018
e922eef
Merge pull request #255 from kchawla-pi/numpy-1.11.0
bthirion Oct 7, 2018
ef15557
(BIDS compliance) Replaced 'paradigm' with 'events', 'experimental pa…
kchawla-pi Oct 8, 2018
676c6c7
Examples write events.tsv files, paradigm replaced by events (BIDS co…
kchawla-pi Oct 8, 2018
2bddf37
Replaced paradigm with events, experimental paradigm in variable name…
kchawla-pi Oct 8, 2018
6172638
Fixed circleci failure, final replacement of paradigm with events
kchawla-pi Oct 8, 2018
7b440dd
boto3/botocore is imported only for openneur fetcher
kchawla-pi Oct 8, 2018
ef414f7
Added DeprecationWarning for python2 users
kchawla-pi Oct 8, 2018
785ab8d
Reformatted according to PEP8 line length
kchawla-pi Oct 8, 2018
d2026d9
Added 'duration' in docstring as an essential key in events data
kchawla-pi Oct 8, 2018
9bfaa5d
Added statistical tutorial
bthirion Oct 8, 2018
6adfde1
More statistical stuff
bthirion Oct 8, 2018
0f28b29
Merge pull request #259 from kchawla-pi/boto-fix
bthirion Oct 8, 2018
35e1cbe
Merge pull request #257 from kchawla-pi/events-not-paradigms-3
bthirion Oct 8, 2018
d305679
Merge pull request #260 from kchawla-pi/py2-warn
bthirion Oct 8, 2018
e2d00ac
Fixed erroneous tests
bthirion Oct 8, 2018
8d93e43
Renamed functon names to use more consistent, less redundant voabulary
kchawla-pi Oct 8, 2018
58e5f37
updated preprocessing paragraph
bthirion Oct 9, 2018
036c208
further typos
bthirion Oct 9, 2018
4514a7c
Some cleaning
bthirion Oct 9, 2018
7e175bf
Some explaantions about localizer protocol
bthirion Oct 8, 2018
82070ef
better explanations
bthirion Oct 8, 2018
d98379e
A bit of cleaning on BIDS example
bthirion Oct 8, 2018
0125d93
Merge pull request #265 from bthirion/less_singular_matrices
bthirion Oct 9, 2018
bed435d
Merge pull request #266 from kchawla-pi/consistent-naming
bthirion Oct 9, 2018
8f88b28
Merge pull request #263 from bthirion/better-tutorial
bthirion Oct 9, 2018
850eb82
Merge pull request #264 from bthirion/stats-intro
bthirion Oct 9, 2018
4be2927
Updated Whats New and version number
kchawla-pi Oct 9, 2018
96cc8d5
Added integrated example of surface-based analysis
bthirion Oct 11, 2018
acbbfe9
Reorganizing the examples
bthirion Oct 11, 2018
99d3d4c
Better intall instructions in README.rst. This was confusing users
GaelVaroquaux Oct 12, 2018
fafc35f
Added 0.0.1b release in News section
kchawla-pi Oct 12, 2018
a70a08e
Cleaned derivative testing
bthirion Oct 12, 2018
f38d8ab
fixed contrast plotting
bthirion Oct 12, 2018
38de4df
Merge pull request #276 from kchawla-pi/master
bthirion Oct 13, 2018
0f12cc0
cleaned generated output of tests
bthirion Oct 15, 2018
6f4d80d
remove unused import
Oct 16, 2018
423dcf2
fix memory caching not working properly when doing compute_contrast
Oct 16, 2018
a5365a4
simplify test case for memory caching
Oct 17, 2018
4edfb1c
simplify memory caching if statement
Oct 17, 2018
002c38d
Fixed: Typos in docs- User Guide: A primer on BOLD-fMRI data analysis
kchawla-pi Nov 15, 2018
0875037
Fixed: Multiple Comparisons reflink+ nistats, nipype in CamelCase
kchawla-pi Nov 15, 2018
70b8caf
Corrected: Replaced NiStats with Nistats
kchawla-pi Nov 16, 2018
ca60911
Merge pull request #273 from bthirion/complete-surface-example
bthirion Nov 19, 2018
12e563a
Merge pull request #277 from bthirion/fix-tutorials
bthirion Nov 19, 2018
084c731
Merge pull request #278 from bthirion/clean_artifacts
bthirion Nov 19, 2018
c91bd7c
Corrected some RestructuredText misformatting & a typo
kchawla-pi Nov 19, 2018
9aba1e8
Merge upstream 'master'
kchawla-pi Nov 19, 2018
69556d3
Corrected many RestructuredText misformatting in docstrings
kchawla-pi Nov 19, 2018
703e020
Adding entry for newly relocated example in carousel section
kchawla-pi Nov 21, 2018
6559776
Adding README.txt to new example dir, necessary for example generation
kchawla-pi Nov 21, 2018
e01df48
Fixed many ore RestructuredText misformatting, corrected some text & …
kchawla-pi Nov 22, 2018
308fd41
Re-enabled `make html-strict`
kchawla-pi Nov 22, 2018
6caf4bf
first_level_model test case - memory caching computation
Nov 25, 2018
f109278
rename test case for clarification
Nov 25, 2018
581bcb4
FIX: numpy.linspace parameter num must be integer
effigies Nov 26, 2018
3c47c1a
FIX: Use rint instead of ceil
effigies Nov 26, 2018
d1c6ee0
Improved: CircleCI builds are more efficient
kchawla-pi Nov 27, 2018
fc8ae53
Added a comment to mkae the disappeared in the PR circleci reappear
kchawla-pi Nov 27, 2018
94b7d6e
Merge Documentation fixes + fixes to enable `make html-strict` (PR #…
kchawla-pi Nov 28, 2018
7ddd01f
Merge branch 'master' (make html-strict enabled, post #283 merge)
kchawla-pi Nov 28, 2018
38a4751
Merge: PR #287 - numpy.linspace parameter num must be integer
kchawla-pi Nov 28, 2018
ab9d403
Merge 'master' (Post Merge: PR #287 - numpy.linspace parameter num mu…
kchawla-pi Nov 28, 2018
9a91a2c
Replaced `ols` in comments with `Ordinary Least Squares` in 3 files f…
kchawla-pi Nov 28, 2018
e970240
Spurious commit to trigger the disappeared TravisCI
kchawla-pi Nov 28, 2018
e173898
Merge PR #279 (Fix memory caching for SecondLevelModel.compute_contrast)
kchawla-pi Nov 29, 2018
7d76628
Merge 'master' Post PR #279 Fix mem caching in SecondLevelModel.compu…
kchawla-pi Nov 29, 2018
976e939
Fixed: param img_filters no longer has a mutable arg ([]) as default
kchawla-pi Nov 29, 2018
f4d2668
Merge PR #289 (param img_filters no longer has a mutable default arg)
kchawla-pi Nov 30, 2018
f800b1c
Merge 'master' post PR #289 (param img_filters no longer has a mutabl…
kchawla-pi Nov 30, 2018
b3d9058
Reformatted commands for clarity after discussion with Gael
kchawla-pi Nov 30, 2018
96ba623
Merge: CircleCI builds are more efficient (PR #288)
kchawla-pi Nov 30, 2018
db497e8
Added mechanism to generate new cache by external contributors
kchawla-pi Dec 2, 2018
e5f70cc
Renamed cache timestamp's filename; clarify its only for manual trigg…
kchawla-pi Dec 2, 2018
8559531
Changed date format to be internation for manual cache rebuild trigger
kchawla-pi Dec 2, 2018
afd971d
Manually triggering a fresh cache build for testing
kchawla-pi Dec 2, 2018
1c2baf0
Removed the provision for caching post `master` merge since it is poi…
kchawla-pi Dec 2, 2018
87c1011
Replaced clean-cache.sh with clean-cache.py (more reliable path deter…
kchawla-pi Dec 3, 2018
a86e5f3
Cleaned up some python code, fixed the incorrect circleci log upload
kchawla-pi Dec 3, 2018
ca9e2be
Added a README.md in .circleci to explain to users how force cache re…
kchawla-pi Dec 4, 2018
d97ea36
MergePR #294 (Enable external contributors to rebuild CircleCI from s…
kchawla-pi Dec 5, 2018
985f4d5
SimpleRegressionResults can still give residuals and predictions when…
Gilles86 Dec 7, 2018
906b1b6
SimpleRegressionResults can still give residuals and predictions when…
Gilles86 Dec 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .circleci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CircleCI is used to build our documentations and tutorial examples.
CircleCI's cache stores previously built documentation and
only rebuild any changes, instead of rebuilding the documentation from scratch.
This saves a lot of time.

Occasionally, some changes necessitate rebuilding the documentation from scratch,
either to see the full effect of the changes
or because the cached builds are raising some error.

To run a new CircleCI build from the beginning, without using the cache:

1. Run the script `clean-cache.py`.
2. Commit the change (with a clear message).
3. Push the commit.
23 changes: 23 additions & 0 deletions .circleci/clean-cache.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#! /usr/bin/env python

import os
from datetime import datetime as dt

def update_cache_timestamp():
""" Updates the contents of the manual-cache-timestamp file
with current timestamp.

Returns
-------
None
"""
timestamp_dirpath = os.path.dirname(__file__)
timestamp_filename = 'manual-cache-timestamp'
timestamp_filepath = os.path.join(timestamp_dirpath, timestamp_filename)
utc_now_timestamp = dt.utcnow()
with open(timestamp_filepath, 'w') as write_obj:
write_obj.write(str(utc_now_timestamp))


if __name__ == '__main__':
update_cache_timestamp()
154 changes: 154 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
# quick-build rebuilds changes using the cached documentation.
# The cache is emptied everyday, forcing a full build on the day's first push.
# It doesn't operate on master branch. New branches are always built from scratch.
# full-build always rebuilds from scratch, without any cache. Only for changes in master branch.

version: 2

jobs:
quick-build:
docker:
- image: circleci/python:3.6
environment:
DISTRIB: "conda"
PYTHON_VERSION: "3.6"
NUMPY_VERSION: "*"
SCIPY_VERSION: "*"
SCIKIT_LEARN_VERSION: "*"
MATPLOTLIB_VERSION: "*"

steps:
- checkout
# Get rid of existing virtualenvs on circle ci as they conflict with conda.
# Trick found here:
# https://discuss.circleci.com/t/disable-autodetection-of-project-or-application-of-python-venv/235/10
- run: cd && rm -rf ~/.pyenv && rm -rf ~/virtualenvs
# We need to remove conflicting texlive packages.
- run: sudo -E apt-get -yq remove texlive-binaries --purge
# Installing required packages for `make -C doc check command` to work.
- run: sudo -E apt-get -yq update
- run: sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra
- run:
name: Generating today's date and writing to file to generate daily new cache key
command: |
date +%F > today
- restore_cache:
key: v5-packages+datasets-{{ .Branch }}-{{ checksum "today" }}-{{ checksum ".circleci/manual-cache-timestamp" }}
- run:
name: Download & install conda if absent
command: |
if
ls $HOME/miniconda3/bin | grep conda -q
then
echo "(Mini)Conda already present from the cache."
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
chmod +x ~/miniconda.sh && ~/miniconda.sh -b
fi
- run:
name: Setup conda path in env variables
command: |
echo 'export PATH="$HOME/miniconda3/bin:$PATH"' >> $BASH_ENV
- run:
name: Create new conda env
command: |
if
conda env list | grep testenv
then
echo "Conda env testenv already exists courtesy of the cache."
else
conda create -n testenv -yq
fi
- run:
name: Install packages in conda env
command: |
conda install -n testenv python=3.6 numpy scipy scikit-learn matplotlib pandas \
flake8 lxml nose cython mkl sphinx coverage patsy boto3 pillow pandas -yq
conda install -n testenv nibabel nilearn nose-timer -c conda-forge -yq
- run:
name: Running CircleCI test (make html)
command: |
source activate testenv
pip install -e .
set -o pipefail && cd doc && make html-strict 2>&1 | tee ~/log.txt
no_output_timeout: 5h
- save_cache:
key: v5-packages+datasets-{{ .Branch }}-{{ checksum "today" }}-{{ checksum ".circleci/manual-cache-timestamp" }}
paths:
- ../nilearn_data
- ../miniconda3
- doc

- store_artifacts:
path: doc/_build/html
- store_artifacts:
path: coverage
- store_artifacts:
path: log.txt


full-build:
docker:
- image: circleci/python:3.6
environment:
DISTRIB: "conda"
PYTHON_VERSION: "3.6"
NUMPY_VERSION: "*"
SCIPY_VERSION: "*"
SCIKIT_LEARN_VERSION: "*"
MATPLOTLIB_VERSION: "*"

steps:
- checkout
# Get rid of existing virtualenvs on circle ci as they conflict with conda.
# Trick found here:
# https://discuss.circleci.com/t/disable-autodetection-of-project-or-application-of-python-venv/235/10
- run: cd && rm -rf ~/.pyenv && rm -rf ~/virtualenvs
# We need to remove conflicting texlive packages.
- run: sudo -E apt-get -yq remove texlive-binaries --purge
# Installing required packages for `make -C doc check command` to work.
- run: sudo -E apt-get -yq update
- run: sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra
- run: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
- run: chmod +x ~/miniconda.sh && ~/miniconda.sh -b
- run: echo 'export PATH="$HOME/miniconda3/bin:$PATH"' >> $BASH_ENV
- run:
name: Create conda env
command: |
conda create -n testenv python=3.6 numpy scipy scikit-learn matplotlib pandas \
flake8 lxml nose cython mkl sphinx coverage patsy boto3 pillow pandas -yq
conda install -n testenv nibabel nilearn nose-timer -c conda-forge -yq
- run:
name: Running CircleCI test (make html)
command: |
source activate testenv
pip install -e .
set -o pipefail && cd doc && make html 2>&1 | tee ~/log.txt
no_output_timeout: 5h

- store_artifacts:
path: doc/_build/html
- store_artifacts:
path: coverage
- store_artifacts:
path: $HOME/log.txt
destination: log.txt


workflows:
version: 2
push:
jobs:
- quick-build:
filters:
branches:
ignore:
- master
- test-circleci # test branch to check if merges occur on master as expected.

- full-build:
filters:
branches:
only:
- master
- test-circleci
1 change: 1 addition & 0 deletions .circleci/manual-cache-timestamp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2018-12-02+15:13:14++01
26 changes: 15 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,30 @@ matrix:
include:
# Ubuntu 14.04 version without matplotlib
- env: DISTRIB="conda" PYTHON_VERSION="2.7"
NUMPY_VERSION="1.8.2" SCIPY_VERSION="0.14"
SCIKIT_LEARN_VERSION="0.15.0"
PANDAS_VERSION="0.13.0"
NUMPY_VERSION="1.11.0" SCIPY_VERSION="0.17"
SCIKIT_LEARN_VERSION="0.18.0"
PANDAS_VERSION="0.18.0"
# Trying to get as close to the minimum required versions while
# still having the package version available through conda
- env: DISTRIB="conda" PYTHON_VERSION="2.7"
NUMPY_VERSION="1.8.2" SCIPY_VERSION="0.14"
SCIKIT_LEARN_VERSION="0.15.0" MATPLOTLIB_VERSION="1.3.1"
NIBABEL_VERSION="2.0.2" PANDAS_VERSION="0.13.0" COVERAGE="true"
NUMPY_VERSION="1.11.2" SCIPY_VERSION="0.19"
SCIKIT_LEARN_VERSION="0.18" MATPLOTLIB_VERSION="1.5.1"
NIBABEL_VERSION="2.0.2" PANDAS_VERSION="*" COVERAGE="true"
# Python 3.4 with intermediary versions
- env: DISTRIB="conda" PYTHON_VERSION="3.4"
NUMPY_VERSION="1.8.2" SCIPY_VERSION="0.14.0"
SCIKIT_LEARN_VERSION="0.15.2" MATPLOTLIB_VERSION="1.4.0"
PANDAS_VERSION="*" PATSY_VERSION="*"
# Most recent versions (Python 3)
NUMPY_VERSION="1.11.0" SCIPY_VERSION="0.17"
SCIKIT_LEARN_VERSION="0.18" MATPLOTLIB_VERSION="1.5.1"
PANDAS_VERSION="0.18.0" PATSY_VERSION="*"
# Python 3.5 with latest versions.
- env: DISTRIB="conda" PYTHON_VERSION="3.5"
NUMPY_VERSION="*" SCIPY_VERSION="*"
SCIKIT_LEARN_VERSION="*" MATPLOTLIB_VERSION="*" COVERAGE="true"
PANDAS_VERSION="*"

# Most recent versions (Python 3)
- env: DISTRIB="conda" PYTHON_VERSION="*"
NUMPY_VERSION="*" SCIPY_VERSION="*"
SCIKIT_LEARN_VERSION="*" MATPLOTLIB_VERSION="*" COVERAGE="true"
PANDAS_VERSION="*"
install:
- source continuous_integration/install.sh

Expand Down
24 changes: 11 additions & 13 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,27 @@ The required dependencies to use the software are:

* Python >= 2.7
* setuptools
* Numpy >= 1.8.2
* SciPy >= 0.14
* Numpy >= 1.11
* SciPy >= 0.17
* Nibabel >= 2.0.2
* Nilearn >= 0.2.0
* Pandas >= 0.13.0
* Sklearn >= 0.15.0
* Patsy >= 0.2.0
* Nilearn >= 0.4.0
* Pandas >= 0.18.0
* Sklearn >= 0.18.0
* Patsy >= 0.4.1

If you are using nilearn plotting functionalities or running the
examples, matplotlib >= 1.3.1 is required.
examples, matplotlib >= 1.5.1 is required.

If you want to run the tests, you need nose >= 1.2.1 and coverage >= 3.6.
If you want to run the tests, you need nose >= 1.2.1 and coverage >= 3.7.

If you want to download openneuro datasets Boto3 >= 1.0.0 is required
If you want to download openneuro datasets Boto3 >= 1.2 is required


Install
=======

In order to perform the installation, run the following command from the nistats directory::

python setup.py install --user

The installation instructions are found on the webpage:
https://nistats.github.io/

Development
===========
Expand Down
51 changes: 0 additions & 51 deletions circle.yml

This file was deleted.

10 changes: 0 additions & 10 deletions continuous_integration/circle_ci_test_doc.sh

This file was deleted.

6 changes: 3 additions & 3 deletions continuous_integration/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ print_conda_requirements() {
# if yes which version to install. For example:
# - for numpy, NUMPY_VERSION is used
# - for scikit-learn, SCIKIT_LEARN_VERSION is used
TO_INSTALL_ALWAYS="pip nose libgfortran=1.0=0 nomkl"
TO_INSTALL_ALWAYS="pip nose libgfortran=3.0=0 nomkl"
REQUIREMENTS="$TO_INSTALL_ALWAYS"
TO_INSTALL_MAYBE="python numpy scipy matplotlib scikit-learn pandas"
for PACKAGE in $TO_INSTALL_MAYBE; do
Expand Down Expand Up @@ -61,10 +61,10 @@ create_new_conda_env() {

# Use the miniconda installer for faster download / install of conda
# itself
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh \
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
-O miniconda.sh
chmod +x miniconda.sh && ./miniconda.sh -b
export PATH=/home/travis/miniconda2/bin:$PATH
export PATH=/home/travis/miniconda3/bin:$PATH
echo $PATH
conda update --quiet --yes conda

Expand Down
5 changes: 3 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,12 @@

sphinx_gallery_conf = {
'doc_module' : 'nistats',
'backreferences_dir': os.path.join('modules', 'generated'),
'reference_url' : {
'nilearn': 'http://nilearn.github.io',
'matplotlib': 'http://matplotlib.org',
'numpy': 'http://docs.scipy.org/doc/numpy-1.6.0',
'scipy': 'http://docs.scipy.org/doc/scipy-0.11.0/reference',
'numpy': 'http://docs.scipy.org/doc/numpy-1.11.0',
'scipy': 'http://docs.scipy.org/doc/scipy-0.17.0/reference',
'nibabel': 'http://nipy.org/nibabel',
'sklearn': 'http://scikit-learn.org/stable',
'patsy': 'http://patsy.readthedocs.io/en/latest/',
Expand Down
Binary file added doc/images/example-spmZ_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/spm_iHRF.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/stimulation-time-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading