Skip to content

Commit

Permalink
Refs #9529. Making PDDetermineCharacterizations make arrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Jun 17, 2014
1 parent c0a624c commit af3caf4
Showing 1 changed file with 11 additions and 2 deletions.
Expand Up @@ -124,10 +124,19 @@ def PyExec(self):
info[dictName] = runNum

# convert to a property manager
for key in COL_NAMES:
manager[key] = info[key]
self.processInformation(manager, info)
PropertyManagerDataService.addOrReplace(manager_name, manager)

def processInformation(self, prop_man, info_dict):
for key in COL_NAMES:
val = info_dict[key]
# Convert comma-delimited list to array, else return the original
# value.
if type("") == type(val):
val = [float(x) for x in val.split(',')]

prop_man[key] = val

def closeEnough(self, left, right):
left = float(left)
right = float(right)
Expand Down

0 comments on commit af3caf4

Please sign in to comment.