Added data parsing to measurement objects and adding power measurements.

This commit is contained in:
Hunter Nichols
2018-12-20 15:54:56 -08:00
parent b10ef3fb7e
commit 66b2fcdc91
3 changed files with 135 additions and 114 deletions
+7
View File
@@ -80,3 +80,10 @@ def convert_to_float(number):
debug.error("Invalid number: {0}".format(number),1)
return float_value
def check_dict_values_is_float(dict):
"""Checks if all the values are floats. Useful for checking failed Spice measurements."""
for key, value in dict.items():
if type(value)!=float:
return False
return True