old_contents: """" Script for smooth function 
  Run with 
  	python3 code/scripts/smooth_script.py
  
  in the main project directory
  """"
  
  from __future__ import absolute_import, division, print_function
  import numpy as np
  import matplotlib.pyplot as plt
  import os
  import sys
  sys.path.append("code/utils")
  from make_class import *
  
  # Read in 4-dimensional filtered data
  sub = run('001', '001', filtered_data = True)
  
  # Use our .smooth method from class 
  after_smooth = sub.smooth(sub.sigma)
  
  #align the two plots
  plt.subplot(211)
  
  plt.subplot(212)
  plot_bold_nii(data, slice_time)
  
  
  
  
  
  
new_contents: """Script for smooth function 
  Run with 
  	python3 code/scripts/smooth_script.py
  
  in the main project directory
  """
  
  from __future__ import absolute_import, division, print_function
  import numpy as np
  import matplotlib.pyplot as plt
  import os
  import sys
  sys.path.append("code/utils")
  from make_class import *
  from plot_tool import *
  
  image_location = 'slides/images/'
  
  # Read in 4-dimensional filtered data
  sub = run('001', '001', filtered_data = True)
  
  # Use our .smooth method from class 
  after_smooth = sub.smooth(sub.sigma_filtered)
  
  #align the two plots
  plt.imshow(show3Dimage(after_smooth, 50))
  plt.colorbar()
  plt.title('After Smoothed Data')
  plt.savefig(image_location+'Smoothed_data.png')
  
  plt.close()
  
  plt.imshow(show3Dimage(sub.data, 50))
  plt.colorbar()
  plt.title('Original Data')
  plt.savefig(image_location+'Original_data.png')
  
  plt.close()
  
  
  
  
  
  
  
  
subject: modify smooth script