Skip to content

Commit

Permalink
Merge branch 'release-1.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
mcvaneede committed Oct 20, 2014
2 parents 1973b8d + d8fa7b7 commit d861259
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
New in Version 1.1.2
New in Version 0.1.3
====================
* compute_values_across_segmentation, volumes_from_labels_only, and voxel_vote now accepts label files with up to 65536 labels (instead of 256)
* voxel_vote now properly writes out label files (integer values)

New in Version 0.1.2
====================
* minc-stuffs can now be compiled against the minc-toolkit
2 changes: 1 addition & 1 deletion python/compute_values_across_segmentation
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if __name__ == "__main__":
parser.error("Incorrect number of arguments")

inf = volumeFromFile(args[0], dtype="double")
atlas = volumeFromFile(args[1], dtype='ubyte')
atlas = volumeFromFile(args[1], dtype='ushort', labels=True)
output = open(args[2], 'w')

labels = unique(atlas.data)
Expand Down
2 changes: 1 addition & 1 deletion python/volumes_from_labels_only
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if __name__ == "__main__":
if len(args) != 2:
parser.error("Incorrect number of arguments")

atlas = volumeFromFile(args[0], dtype='ubyte')
atlas = volumeFromFile(args[0], dtype='ushort', labels=True)
output = open(args[1], 'w')

volumePerVoxel=atlas.separations[0]*atlas.separations[1]*atlas.separations[2]
Expand Down
4 changes: 2 additions & 2 deletions python/voxel_vote
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ if __name__ == "__main__":

nfiles = len(args)-1
for i in range( nfiles ):
volhandles.append(volumeFromFile(args[i], dtype='ubyte'))
volhandles.append(volumeFromFile(args[i], dtype='ushort', labels=True))

outfile = volumeFromInstance(volhandles[0], outfilename)
outfile = volumeFromInstance(volhandles[0], outfilename, dtype='ushort', volumeType='ushort', labels=True)

sliceArray = zeros( (nfiles,
volhandles[0].sizes[1],
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


setup(name="python-stuffs",
version='0.1.2',
version='0.1.3',
scripts=["python/TFCE",
"python/smooth_vector",
"python/measure_xcorr",
Expand Down

0 comments on commit d861259

Please sign in to comment.