Skip to content

Commit 4f2511f

Browse files
committed
Merge branch 'master' into interface/cat12
2 parents 920b879 + 12d06fd commit 4f2511f

File tree

7 files changed

+16
-136
lines changed

7 files changed

+16
-136
lines changed

.circleci/config.yml

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ _build_main_image_py36: &build_main_image_py36
5252
--rm=false \
5353
--tag nipype/nipype:latest \
5454
--tag nipype/nipype:py36 \
55+
$(test -z "${CIRCLE_TAG}" || echo --tag nipype/nipype:"${CIRCLE_TAG}") \
5556
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
5657
--build-arg VCS_REF="$(git rev-parse --short HEAD)" \
5758
--build-arg VERSION="${CIRCLE_TAG}" /home/circleci/nipype
@@ -192,6 +193,7 @@ jobs:
192193
docker push nipype/nipype:base
193194
docker push nipype/nipype:latest
194195
docker push nipype/nipype:py36
196+
test -z "${CIRCLE_TAG}" || docker push nipype/nipype:"${CIRCLE_TAG}"
195197
- run:
196198
name: Move pruned Dockerfile to /tmp/docker/cache directory
197199
command: |
@@ -289,44 +291,10 @@ jobs:
289291
ssh-add ~/.ssh/id_ed25519
290292
/home/circleci/nipype/tools/feedstock.sh
291293
292-
build_docs:
293-
docker:
294-
- image: python:3.7.4
295-
working_directory: /tmp/src/nipype
296-
environment:
297-
- FSLOUTPUTTYPE: 'NIFTI'
298-
steps:
299-
- checkout
300-
- run:
301-
name: Check Python version and upgrade pip
302-
command: |
303-
python --version
304-
python -m pip install -U pip
305-
- run:
306-
name: Install graphviz
307-
command: |
308-
apt-get update
309-
apt-get install -y graphviz
310-
- run:
311-
name: Install Requirements (may contain pinned versions)
312-
command: python -m pip install -r doc/requirements.txt
313-
- run:
314-
name: Install NiPype
315-
command: python -m pip install ".[doc]"
316-
- run:
317-
name: Build documentation
318-
command: make -C doc html
319-
- store_artifacts:
320-
path: /tmp/src/nipype/doc/_build/html
321-
322294
workflows:
323295
version: 2
324296
build_test_deploy:
325297
jobs:
326-
- build_docs:
327-
filters:
328-
tags:
329-
only: /.*/
330298
- pypi_precheck:
331299
filters:
332300
branches:
@@ -353,6 +321,8 @@ workflows:
353321
filters:
354322
branches:
355323
only: master
324+
tags:
325+
only: /.*/
356326
requires:
357327
- test_pytest
358328
- deploy_pypi:

.github/workflows/main.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

docker/generate_dockerfiles.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function generate_main_dockerfile() {
8787
--label maintainer="The nipype developers https://github.com/nipy/nipype" \
8888
--env MKL_NUM_THREADS=1 \
8989
OMP_NUM_THREADS=1 \
90-
--arg PYTHON_VERSION_MAJOR=3 PYTHON_VERSION_MINOR=6 BUILD_DATE VCS_REF VERSION \
90+
--arg PYTHON_VERSION_MAJOR=3 PYTHON_VERSION_MINOR=8 BUILD_DATE VCS_REF VERSION \
9191
--user neuro \
9292
--workdir /home/neuro \
9393
--miniconda create_env=neuro \

nipype/info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def get_nipype_gitversion():
162162
EXTRA_REQUIRES = {
163163
"data": ["datalad"],
164164
"doc": [
165-
"dipy",
165+
"dipy!=1.4.1",
166166
"ipython",
167167
"matplotlib",
168168
"nbsphinx",
@@ -172,7 +172,7 @@ def get_nipype_gitversion():
172172
"sphinxcontrib-napoleon",
173173
],
174174
"duecredit": ["duecredit"],
175-
"nipy": ["nitime", "nilearn", "dipy", "nipy", "matplotlib"],
175+
"nipy": ["nitime", "nilearn", "dipy!=1.4.1", "nipy", "matplotlib"],
176176
"profiler": ["psutil>=5.0"],
177177
"pybids": ["pybids>=0.7.0"],
178178
"specs": ["black"],

nipype/interfaces/utility/base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ def _list_outputs(self):
362362
splits.extend(self.inputs.splits)
363363
splits = np.cumsum(splits)
364364
for i in range(len(splits) - 1):
365-
val = np.array(self.inputs.inlist)[splits[i] : splits[i + 1]].tolist()
365+
val = np.array(self.inputs.inlist, dtype=object)[
366+
splits[i] : splits[i + 1]
367+
].tolist()
366368
if self.inputs.squeeze and len(val) == 1:
367369
val = val[0]
368370
outputs["out%d" % (i + 1)] = val
@@ -407,7 +409,9 @@ class Select(IOBase):
407409

408410
def _list_outputs(self):
409411
outputs = self._outputs().get()
410-
out = np.array(self.inputs.inlist)[np.array(self.inputs.index)].tolist()
412+
out = np.array(self.inputs.inlist, dtype=object)[
413+
np.array(self.inputs.index)
414+
].tolist()
411415
outputs["out"] = out
412416
return outputs
413417

nipype/pipeline/plugins/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,9 @@ def _submit_job(self, node, updatehash=False):
543543
pyscript = create_pyscript(node, updatehash=updatehash)
544544
batch_dir, name = os.path.split(pyscript)
545545
name = ".".join(name.split(".")[:-1])
546-
batchscript = "\n".join((self._template, "%s %s" % (sys.executable, pyscript)))
546+
batchscript = "\n".join(
547+
(self._template.rstrip("\n"), "%s %s" % (sys.executable, pyscript))
548+
)
547549
batchscriptfile = os.path.join(batch_dir, "batchscript_%s.sh" % name)
548550
with open(batchscriptfile, "wt") as fp:
549551
fp.writelines(batchscript)

0 commit comments

Comments
 (0)