Commit ab5abccb authored by root's avatar root
Browse files

some bug fixes and added requirements

parent 55f08f35
......@@ -19,7 +19,7 @@ pandas (>= 0.23.4)
reportlab (>= 3.3.0)
svglib (>= 0.9.0)
svglib (== 0.9.0)
### Installation notes:
......
......@@ -137,6 +137,9 @@ def GetGpuVars(conf,agg_nodes):
# Specify which variables in 'nodes' data to plot as barcharts and the units of these data in the databank
NoneType=type(None)
if agg_nodes[0]['gpus'] is None:
return [], [], []
if len(conf) == 0:
# default values
print('no config file, using default gpu setting')
......@@ -579,7 +582,7 @@ def boxplot(case):
fig = plt.figure(figsize=(7,2),dpi=100)
ax = plt.subplot(1,1,1)
ax.boxplot(data,0, sym='rs', vert=False, whis='range', positions=[0], widths=[0.5])
ax.boxplot(data,0, sym='rs', vert=False, whis=[0,100], positions=[0], widths=[0.5])
ax.set_yticks([])
ax.xaxis.set_tick_params(labelsize=22)
#ax.spines["top"].set_visible(False)
......@@ -1995,7 +1998,7 @@ class ReportMaker(object):
#bild = 'seal.png'
#c.drawImage(bild,350, 50, width=None, height=None) # x = left side of image, you can resize with width and height
image_path = tmpdir + '/' + 'global_barchart_' + str(jobid) + '.svg'
scaling_factor = 1.00
scaling_factor = 1
# position of image and text for image
ixpos = 80
iypos = 240
......@@ -2814,7 +2817,7 @@ def main(argv):
# gts_labels = list of corresponding captions
# gts_files = list of corresponding file identification strings
nsubpg = 0
if 'gpus' in agg_dict['nodes'][0]:
if 'gpus' in agg_dict['nodes'][0] and agg_dict['nodes'][0]['gpus'] is not None:
##### Variable boxplot diagrams of gpu data ######
# define cases in ordered lists
......
Supports Markdown
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