CachedAttributeLoadingJob

ppg2.CachedAttributeLoadingJob #

def CachedAttributeLoadingJob(
    cache_filename,
    object,
    attribute_name,
    data_function,
    depend_on_function=True,
    resources: Resources = Resources.SingleCore,
):

Similar to CachedDataLoadingJob, but stores the data in an attribute of an object.

Unlike the CachedDataLoadingJob you only need one function

  • data_function that returns the value to store & assign.

See AttributeLoadingJob for the other parameters.