Skip to content

Commit

Permalink
Merge pull request #154 from tsalo/py3.5
Browse files Browse the repository at this point in the history
[TST] Support Python 3.5
  • Loading branch information
emdupre authored Nov 11, 2018
2 parents 87cb2e2 + 0751179 commit 8f34d3a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
language: python
sudo: false

python:
- 3.6
- 3.7-dev

matrix:
include:
- python: 3.5
env:
- STYLE=0
- COVERAGE=0
- python: 3.6
env:
- STYLE=1
- COVERAGE=0
- python: 3.6
env:
- STYLE=0
- COVERAGE=1
- python : 3.7-dev
env:
- STYLE=0
- COVERAGE=0

before_install:
- python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion tedana/decomposition/eigendecomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def tedpca(catd, OCcatd, combmode, mask, t2s, t2sG, stabilize,
varex_norm_min = pcastate['varex_norm_min']
varex_norm_cum = pcastate['varex_norm_cum']

np.savetxt('mepca_mix.1D', comp_ts)
np.savetxt('mepca_mix.1D', comp_ts.T)

# write component maps to 4D image
comp_maps = np.zeros((OCcatd.shape[0], comp_ts.shape[0]))
Expand Down
1 change: 1 addition & 0 deletions tedana/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Information Analysis',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
]
2 changes: 1 addition & 1 deletion tedana/workflows/t2smap.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def t2smap_workflow(data, tes, mask=None, fitmode='all', combmode='t2s',

try:
ref_label = os.path.basename(ref_img).split('.')[0]
except TypeError:
except (TypeError, AttributeError):
ref_label = os.path.basename(str(data[0])).split('.')[0]

if label is not None:
Expand Down
2 changes: 1 addition & 1 deletion tedana/workflows/tedana.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def tedana_workflow(data, tes, mask=None, mixm=None, ctab=None, manacc=None,

try:
ref_label = op.basename(ref_img).split('.')[0]
except TypeError:
except (TypeError, AttributeError):
ref_label = op.basename(str(data[0])).split('.')[0]

if label is not None:
Expand Down

0 comments on commit 8f34d3a

Please sign in to comment.