Adding job argument to get() method
Now that we have all the manifest history stored within the object based on the jobname, we can reference these manifests by name.
@@ -574,7 +574,7 @@ class Chip:
return fullstr
###########################################################################
- def get(self, *keypath, field='value', cfg=None):
+ def get(self, *keypath, field='value', job=None, cfg=None):
"""
Returns a parameter value based on keypath provided.
@@ -600,6 +600,9 @@ class Chip:
"""
if cfg is None:
+ if job is not None:
+ cfg = self.cfghistory[job]
+ else:
cfg = self.cfg
keypathstr = ','.join(keypath)
