Commit 3e49671e authored by Thomas Vincent's avatar Thomas Vincent

rename attribute storing elapsed time

parent 88314b5c
......@@ -920,20 +920,20 @@ class QSpaceConverter(object):
self.t_mask = 0.
self.t_read = 0.
self.t_context = 0.
self.t_dnsamp = 0.
self.t_preprocess = 0.
self.t_medfilt = 0.
self.t_write = 0.
self.t_w_lock = 0.
def update(self, arg):
(t_read_, t_context_, t_dnsamp_, t_medfilt_, t_histo_,
(t_read_, t_context_, t_preprocess_, t_medfilt_, t_histo_,
t_mask_, t_sum_, t_write_, t_w_lock_) = arg[2]
self.t_histo += t_histo_
self.t_sum += t_sum_
self.t_mask += t_mask_
self.t_read += t_read_
self.t_context += t_context_
self.t_dnsamp += t_dnsamp_
self.t_preprocess += t_preprocess_
self.t_medfilt += t_medfilt_
self.t_write += t_write_
self.t_w_lock += t_w_lock_
......@@ -976,7 +976,7 @@ class QSpaceConverter(object):
print('TOTAL {0}'.format(tb - ta))
print('Read {0}'.format(res_times.t_read))
print('Context {0}'.format(res_times.t_context))
print('Dn Sample {0}'.format(res_times.t_dnsamp))
print('Preprocess {0}'.format(res_times.t_preprocess))
print('Medfilt {0}'.format(res_times.t_medfilt))
print('Histo {0}'.format(res_times.t_histo))
print('Mask {0}'.format(res_times.t_mask))
......@@ -1264,7 +1264,7 @@ def _to_qspace(th_idx,
t_mask = 0.
t_sum = 0.
t_read = 0.
t_dnsamp = 0.
t_preprocess = 0.
t_medfilt = 0.
t_write = 0.
t_w_lock = 0.
......@@ -1379,7 +1379,7 @@ def _to_qspace(th_idx,
intensity = img
t_dnsamp += time.time() - t0
t_preprocess += time.time() - t0
t0 = time.time()
# intensity = medfilt2d(intensity, 3)
......@@ -1439,10 +1439,10 @@ def _to_qspace(th_idx,
if disp_times:
print('Thread {0} is done. Times={1}'
''.format(th_idx, (t_read, t_context, t_dnsamp,
''.format(th_idx, (t_read, t_context, t_preprocess,
t_medfilt, t_histo,
t_mask, t_sum, t_write, t_w_lock)))
return [rc, errMsg, (t_read, t_context, t_dnsamp,
return [rc, errMsg, (t_read, t_context, t_preprocess,
t_medfilt, t_histo,
t_mask, t_sum, t_write, t_w_lock,)]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment