afmformats.lazy_loader

Classes

  • LazyData: Lazily load data from function and kwargs

class afmformats.lazy_loader.LazyData[source]

Lazily load data from function and kwargs

The idea is that the experimental data does not have to be loaded before the user requests it. Furthermore, this reduces the memory footprint (not all data are loaded).

Inheritance

Inheritance diagram of LazyData
set_lazy_loader(column, func, kwargs)[source]

Add a lazy loader

Parameters
  • column (str) – Column for which to register the loader

  • func (callable) – Function to call to get the data

  • kwargs – Keyword arguments to func