skfdiff.plugins package

Submodules

skfdiff.plugins.container module

class skfdiff.plugins.container.AttrDict(*args, **kwargs)[source]

Bases: dict

class skfdiff.plugins.container.Container(path=None, mode='a', *, save='all', force=False, nbuffer=None, save_interval=None, background_write=False)[source]

Bases: object

connect(stream)[source]
abstract property data
flush()[source]
property is_writing
property save
property writers
class skfdiff.plugins.container.MemoryContainer(path=None, mode='a', *, save='all', force=False, nbuffer=None, save_interval=None, background_write=False)[source]

Bases: Container

property data
class skfdiff.plugins.container.NetCDFContainer(path, mode='a', *, save='all', force=False, nbuffer=None, save_interval=None, background_write=True)[source]

Bases: Container

property data
merge(override=True)[source]
static merge_datafiles(path, override=False)[source]
static retrieve(path: Path, isel: Union[str, dict, int] = 'all', lazy: bool = False)[source]

Retrieve the data of a persistent container.

Parameters:
  • path (Path or str) – The folder where the persistent container lives.

  • isel (Union[str, dict, int], optional) – can be either “all” or “last”, an integer or a sequence of integer. (the default is “all”)

  • lazy (bool, optional) – if True, return a lazy xarray Datasets that will be loaded when requested by the user (using the compute() method). Useful when the data are too big to fit in memory. (the default is False)

Returns:

The requested data as time-dependant xarray Dataset.

Return type:

xarray.Dataset

class skfdiff.plugins.container.ZarrContainer(path, mode='a', *, save='all', force=False, nbuffer=None, save_interval=None, background_write=False)[source]

Bases: Container

property data
static retrieve(path: Path, isel: Union[str, dict, int] = 'all', lazy: bool = False)[source]

Retrieve the data of a persistent container.

Parameters:
  • path (Path or str) – The folder where the persistent container lives.

  • isel (Union[str, dict, int], optional) – can be either “all” or “last”, an integer or a sequence of integer. (the default is “all”)

  • lazy (bool, optional) – if True, return a lazy xarray Datasets that will be loaded when requested by the user (using the compute() method). Useful when the data are too big to fit in memory. (the default is False)

Returns:

The requested data as time-dependant xarray Dataset.

Return type:

xarray.Dataset

skfdiff.plugins.container.coerce_attr(key, value)[source]
skfdiff.plugins.container.retrieve_container(path: Path, isel: Union[str, dict, int] = 'all', lazy: bool = False)[source]

skfdiff.plugins.displays module

class skfdiff.plugins.displays.Display(skel_data, plot_function)[source]

Bases: object

connect(stream, n=1)[source]
static display_custom(simul, plot_function, n=1)[source]
static display_fields(simul, keys='unknowns', n=1, dim_allowed=(0, 1, 2))[source]
property hv_curve
show()[source]

Module contents