Support DUO cards for reports generation

This commit is contained in:
2017-08-21 10:25:59 +02:00
parent dadb453b31
commit 8e1cf6bcaa

View File

@@ -154,9 +154,13 @@ def deviceInfoAsString(device_info):
"""
device_type = device_info['device_type']
compute_devices = device_info['compute_devices']
if len(compute_devices) == 1:
num_devices = len(compute_devices)
if num_devices == 1:
return compute_devices[0]
raise Exception("Needs implementation")
elif num_devices == 2:
if compute_devices[0] == compute_devices[1]:
return compute_devices[0] + " DUO"
raise Exception("Needs implementation")
########################################
# Graphs manipulation.