Commit 9903c010 authored by Radek Galabov's avatar Radek Galabov
Browse files

Add CPU and wall clock commands to main.

parent fdbc22bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@ import os


#path from folder with .py scripts.
#path from folder with .py scripts.
#base = "../../G318_patient18_bodyPart1_visit1/"
#base = "../../G318_patient18_bodyPart1_visit1/"
base = "D:\\G318_pacienti\\G318_patient7_bodyPart2_visit3"  +  os.sep
base = "C:\\Users\\galr\\Desktop\\pacienti_rozpracovani\\G318_patient40_bodyPart1_visit0"  +  os.sep


#base = "/home/katka/mnt_geraldine/local/projects/IKEM/AZV-2019/data/nezpracovani/G318_patient22_bodyPart2_visit1/"
#base = "/home/katka/mnt_geraldine/local/projects/IKEM/AZV-2019/data/nezpracovani/G318_patient22_bodyPart2_visit1/"


+15 −0
Original line number Original line Diff line number Diff line
import declarations as dcl
import declarations as dcl
import importlib
import importlib
import time


# get the start time
st_cpu = time.process_time()
st_wall = time.time()


"""Pipeline:"""
"""Pipeline:"""


@@ -33,3 +37,14 @@ import _07_antialiasing




import _06_integrate_flow
import _06_integrate_flow


# get the end time
et_cpu = time.process_time()
et_wall = time.time()

# get execution time
res_cpu = et_cpu - st_cpu
res_wall = et_wall - st_wall
print('CPU Execution time: ', res_cpu, 'seconds')
print('Wall Execution time:', res_wall, 'seconds')
+1 −1
Original line number Original line Diff line number Diff line
@@ -42,7 +42,7 @@ def lag_finder(y1, y2, sr):
ResetSession()
ResetSession()
print(100*'\n')
print(100*'\n')
print('-------------------  STARTING  A  NEW  SESSION -----------------------')
print('-------------------  STARTING  A  NEW  SESSION -----------------------')
base = (r'D:\\G318_pacienti\\G318_patient7_bodyPart2_visit3'.replace('\\','\\\\')  +  2*os.sep)
base = (r'C:\\Users\\galr\\Desktop\\pacienti_rozpracovani\\G318_patient40_bodyPart1_visit0'.replace('\\','\\\\')  +  2*os.sep)


meas_info_filename = "measurement_info"  # Import  series numbers and VENCs.
meas_info_filename = "measurement_info"  # Import  series numbers and VENCs.
sampling_percent = 100 # sometimes probably due to memory reasons only low values (e.g. 17) are possible 
sampling_percent = 100 # sometimes probably due to memory reasons only low values (e.g. 17) are possible