In [1]:
import subprocess

In [14]:
results_name = "HITS1"
gpu_code_path = "../code/gpu/"
real_image_path = "../../HITS/trimmed_chip_03/Blind15A_01" #gpu_code_path+"images/"+real_image_name #
psi_image_path = gpu_code_path+"output-images/psi"
phi_image_path = gpu_code_path+"output-images/phi"

In [15]:
paramsFile = open('../code/gpu/debug/parameters.config', 'w')
paramsFile.write(
"""Debug ................ : 1
PSF Sigma ............ : 1.0
Mask Threshold ....... : 0.75
Mask Penalty ......... : -0.05
Angles to Search ..... : 120
Minimum Angle ........ : 0.0
Maximum Angle ........ : 6.283
Velocities to Search . : 45
Minimum Velocity ..... : 0.4
Maximum Velocity ..... : 6.0
Psi/Phi to file ...... : 1
Source Images Path ... : ../../{source}/
Psi Images Path ...... : ../../{psi}/
Phi Images Path....... : ../../{phi}/
Results Path ......... : ../../../data/results/{name}.txt
""".format( source=real_image_path, psi=psi_image_path, phi=phi_image_path, name=results_name ))
paramsFile.close()

In [16]:
!cd ~/cuda-workspace/kbmod/code/gpu/debug/; ./clearImages.sh

In [ ]:
!cd ~/cuda-workspace/kbmod/code/gpu/debug/; ./CudaTracker


PSF Sigma ............  : 1.0
Mask Threshold .......  : 0.75
Mask Penalty .........  : -0.05
Angles to Search .....  : 120
Minimum Angle ........  : 0.0
Maximum Angle ........  : 6.283
Velocities to Search .  : 45
Minimum Velocity .....  : 0.4
Maximum Velocity .....  : 6.0
Psi/Phi to file ......  : 1
Source Images Path ...  : ../../../../HITS/trimmed_chip_03/Blind15A_01//
Psi Images Path ......  : ../../../code/gpu/output-images/psi/
Phi Images Path.......  : ../../../code/gpu/output-images/phi/
Results Path .........  : ../../../data/results/HITS1.txt
Using Kernel Size 5X5
| 0.004 | 0.015 | 0.023 | 0.015 | 0.004 | 
 ---------------------------------------
| 0.015 | 0.058 | 0.093 | 0.058 | 0.015 | 
 ---------------------------------------
| 0.023 | 0.093 | 0.147 | 0.093 | 0.023 | 
 ---------------------------------------
| 0.015 | 0.058 | 0.093 | 0.058 | 0.015 | 
 ---------------------------------------
| 0.004 | 0.015 | 0.023 | 0.015 | 0.004 | 
 ---------------------------------------
97.532% of PSF contained within kernel
Reading 35 images from ../../../../HITS/trimmed_chip_03/Blind15A_01//

In [13]:
#subprocess.check_output(['ls','-a']) #all that is technically needed...
#print subprocess.check_output(['~/cuda-workspace/kbmod/code/gpu/debug/clearImages.sh;'])