Skip to content

Commit ecd8b04

Browse files
committed
Updated package requirements, and patched a potential source of functional-spatial crashes.
1 parent 0080739 commit ecd8b04

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

qap/spatial_qc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,15 @@ def ghost_direction(epi_data, mask_data, direction="y", ref_file=None,
383383

384384
# rotate by n/2
385385
if direction == "x":
386-
n2 = np.floor(mask_data.shape[0]/2)
386+
n2 = int(np.floor(mask_data.shape[0]/2))
387387
n2_mask_data[:n2,:,:] = mask_data[n2:(n2*2),:,:]
388388
n2_mask_data[n2:(n2*2),:,:] = mask_data[:n2,:,:]
389389
elif direction == "y":
390-
n2 = np.floor(mask_data.shape[1]/2)
390+
n2 = int(np.floor(mask_data.shape[1]/2))
391391
n2_mask_data[:,:n2,:] = mask_data[:,n2:(n2*2),:]
392392
n2_mask_data[:,n2:(n2*2),:] = mask_data[:,:n2,:]
393393
elif direction == "z":
394-
n2 = np.floor(mask_data.shape[2]/2)
394+
n2 = int(np.floor(mask_data.shape[2]/2))
395395
n2_mask_data[:,:,:n2] = mask_data[:,:,n2:(n2*2)]
396396
n2_mask_data[:,:,n2:(n2*2)] = mask_data[:,:,:n2]
397397
else:

qap/test_spatial_qc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ def test_fwhm_no_out_vox():
275275
def test_ghost_direction():
276276

277277
import os
278-
import pickle
279278
import pkg_resources as p
280279

281280
import numpy.testing as nt

qap/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__="1.0.8"
1+
__version__="1.0.8b"

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def main():
4444
'reportlab (>=3.3.0)', 'scipy (>=0.17.1)',
4545
'seaborn (>=0.7.0)', 'simplejson (>=3.8.2)',
4646
'six (>=1.10.0)', 'traits (>=4.5.0)', 'wsgiref (>=0.1.2)',
47-
'xhtml2pdf (>=0.1a4)', 'configparser (>=3.5.0)'],
47+
'xhtml2pdf (>=0.1a4)', 'configparser (>=3.5.0)',
48+
'lockfile (>=0.12)'],
4849
install_requires=['numpy >=1.11.0', 'INDI-Tools >=0.0.6',
4950
'PyPDF2 >=1.26.0', 'PyYAML >=3.11', 'Pillow >=3.2.0',
5051
'argparse >=1.2.1', 'boto3 >=1.3.1',
@@ -62,7 +63,7 @@ def main():
6263
'seaborn >=0.7.0', 'simplejson >=3.8.2',
6364
'six >=1.10.0', 'traits >=4.5.0', 'wsgiref >=0.1.2',
6465
'xhtml2pdf >=0.1a4', 'configparser >=3.5.0',
65-
'numpy >=1.11.0'],
66+
'numpy >=1.11.0', 'lockfile >=0.12'],
6667
zip_safe=False)
6768

6869
if __name__ == "__main__":

0 commit comments

Comments
 (0)