PlasmaCalcs.other_calculators.from_dataset.InfersSnapsFromDataset

class PlasmaCalcs.other_calculators.from_dataset.InfersSnapsFromDataset(ds, **kw_super)

Bases: object

adds self.init_snaps() which infers snaps from self.ds[‘snap’] if available.
(if ds[‘snap’] contents are not Snap objects, infer ‘t’ from ds[‘t’] too if available.)
__init__(ds, **kw_super)

Methods

__init__(ds, **kw_super)

init_snaps()

load_direct(var, *args, **kw)

init_snaps()
initialize snaps from self.ds[‘snap’] if available.
(Otherwise, self will have the default self.snap=None, self.snaps=None.)
load_direct(var, *args, **kw)
load var directly from self.ds if possible. slice snap dimension based on self.snap.
snap_list_cls

alias of SnapList