Skip to content

Commit

Permalink
update process_template.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophKirst authored Jul 19, 2016
1 parent 7b14c2c commit 16fd455
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ClearMap/Scripts/process_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@

#Without weigths:
vox = voxelize(points, AtlasFile, **voxelizeParameter);
io.writeData(os.path.join(BaseDirectory, 'cells_heatmap.tif'), vox.astype('int32'));
if not isinstance(vox, basestring):
io.writeData(os.path.join(BaseDirectory, 'cells_heatmap.tif'), vox.astype('int32'));

#With weigths from the intensity file (here raw intensity):
voxelizeParameter["weights"] = intensities[:,0].astype(float);
vox = voxelize(points, AtlasFile, **voxelizeParameter);
io.writeData(os.path.join(BaseDirectory, 'cells_heatmap_weighted.tif'), vox.astype('int32'));
if not isinstance(vox, basestring):
io.writeData(os.path.join(BaseDirectory, 'cells_heatmap_weighted.tif'), vox.astype('int32'));



Expand Down

0 comments on commit 16fd455

Please sign in to comment.