polaris.tasks.ocean.analysis.accumulate.stamp_difference

polaris.tasks.ocean.analysis.accumulate.stamp_difference(cached, wanted)[source]

Get the entries of a provenance stamp that keep a cache from being inherited

Parameters:
  • cached (dict or None) – The stamp the cache carries

  • wanted (dict) – The stamp the step is asking for

Returns:

difference (list of str) – The entries that differ, each as key: cached value, not wanted value, empty if the cache may be inherited