MCPcopy Index your code
hub / github.com/LabPy/lantz / recall

Method recall

lantz/driver.py:445–459  ·  view source on GitHub ↗

Return the last value seen for a feat or a collection of feats. :param keys: a string or list of strings with the properties to refresh. Default None all properties. If keys is a string, returns the value. If keys is a list, ret

(self, keys=None)

Source from the content-addressed store, hash-verified

443 return fut
444
445 def recall(self, keys=None):
446 """Return the last value seen for a feat or a collection of feats.
447
448 :param keys: a string or list of strings with the properties to refresh.
449 Default None all properties.
450 If keys is a string, returns the value.
451 If keys is a list, returns a dictionary.
452 :type keys: str, list, tuple, dict.
453 """
454
455 if keys:
456 if isinstance(keys, (list, tuple, set)):
457 return {key: self._lantz_features[key].get_cache(self) for key in keys}
458 return self._lantz_features[keys].get_cache(self)
459 return {key: value.get_cache(self) for key, value in self._lantz_features.keys()}
460
461 @property
462 def feats(self):

Callers 15

modeMethod · 0.80
triggerMethod · 0.80
roiMethod · 0.80
binningMethod · 0.80
modeMethod · 0.80
triggerMethod · 0.80
roiMethod · 0.80
binningMethod · 0.80
queryMethod · 0.80
trigger_ecl_modeMethod · 0.80
clamp_voltageMethod · 0.80

Calls 2

get_cacheMethod · 0.45
keysMethod · 0.45

Tested by 4

test_cacheMethod · 0.64
test_of_instanceMethod · 0.64
test_cacheMethod · 0.64
test_of_instanceMethod · 0.64