Commit 05835cac by Alan Taylor

### PEP8 tidy

parent 86813d58
dtr_analysis.py 100644 → 100755
 ... ... @@ -92,10 +92,12 @@ def display_basic_render_info(scr_start, time_taken_previous_renders, checked): # summary table for i in data: print(i[0].rjust(16) + str(i[1]).rjust(8) + \ print( i[0].rjust(16) + str(i[1]).rjust(8) + str(datetime.timedelta(seconds=int(i[2]))).rjust(20)) print('\n' + 'real time'.rjust(44) + '\n' + \ print( '\n' + 'real time'.rjust(44) + '\n' + str(datetime.timedelta(seconds=int(real_time))).rjust(44)) # calculate a realistic speed-up ratio: compare the real time total to the ... ... @@ -150,6 +152,7 @@ def _blocks_by_node(blocks): return nodes, times def _time_to_greyscale(blocks): """ convert render times to greyscale pixel values, where black (0, 0, 0), ... ... @@ -180,6 +183,7 @@ def _time_to_greyscale(blocks): for block in blocks: block[2] = int((block[2] - t_min) * scale) def create_heatmap(settings, blocks): """ produce a heatmap for the rendered image, where the brightest colours ... ... @@ -219,7 +223,7 @@ def create_heatmap(settings, blocks): # compensate for differences in performance between nodes med = max(medians) adjust = {n : m / med for n, m in zip(nodes, medians)} adjust = {n: m / med for n, m in zip(nodes, medians)} for block in local_blocks: block[2] *= adjust[block[0]] ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!