ipyvasp.core.serializerΒΆ

Functions

dict2tuple(name, d)

Converts a dictionary (nested as well) to namedtuple, accessible via index and dot notation as well as by unpacking.

dump(data[, format, outfile, indent])

Dump Dict2Data or subclass object or any dictionary to json or pickle string/file.

load(file_or_str)

Loads a json/pickle dumped file or string by auto detecting it.

Classes

BrZoneData(d)

CellData(d)

DecodeToNumpy(*args, **kwargs)

Deserilizes JSON object to Python/Numpy's objects.

Dict2Data(d)

Creates a Data object with dictionary keys as attributes of Data accessible by dot notation or by key.

EncodeFromNumpy(*[, skipkeys, ensure_ascii, ...])

Serializes python/Numpy objects via customizing json encoder.

GridData(d)

OutcarData(d)

PoscarData(d)

SpecialPoints(d)

SpinData(d)