Skip to content

Commit

Permalink
Guassian smoothed array now works with 32 bit floats instead of 64 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonDaks committed Dec 11, 2015
1 parent a45c3cc commit 9aa0734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Empty file.
5 changes: 4 additions & 1 deletion code/stat159lambda/preprocess/preprocess.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@



from __future__ import division, print_function
import json
import sys
Expand Down Expand Up @@ -89,7 +92,7 @@ def get_affine():
def gaussian_smooth_subj(subj_num, fwhm_mm):
smoothed_data_path = dp.get_smoothed_path(subj_num, fwhm_mm)
if not exists(smoothed_data_path) or not USE_CACHED_DATA:
data = np.load(dp.get_concatenated_path(subj_num)).astype(float)
data = np.load(dp.get_concatenated_path(subj_num)).astype(np.float32)
smoothed_data = apply_gaussian_smooth(data, fwhm_mm)
del data
np.save(smoothed_data_path, smoothed_data)
Expand Down

0 comments on commit 9aa0734

Please sign in to comment.