We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f878d1 + c0c0fde commit 315b2d0Copy full SHA for 315b2d0
nipype/interfaces/dipy/tracks.py
@@ -69,6 +69,7 @@ class TrackDensityMap(BaseInterface):
69
output_spec = TrackDensityMapOutputSpec
70
71
def _run_interface(self, runtime):
72
+ from numpy import min_scalar_type
73
tracks, header = nbt.read(self.inputs.in_file)
74
streams = ((ii[0]) for ii in tracks)
75
@@ -95,7 +96,7 @@ def _run_interface(self, runtime):
95
96
kwargs = dict(voxel_size=voxel_size)
97
98
data = density_map(streams, data_dims, **kwargs)
- data = data.astype(np.min_scalar_type(data.max()))
99
+ data = data.astype(min_scalar_type(data.max()))
100
img = nb.Nifti1Image(data, affine)
101
out_file = op.abspath(self.inputs.out_filename)
102
nb.save(img, out_file)
0 commit comments