grogupy._core.strip_dict_structure

grogupy._core.strip_dict_structure(dictionary: dict, pops: list[str] = ['_dh', '_ds', 'Gii', 'Gij', 'Gji', 'Vu1', 'Vu2'], setto: Any = []) dict[source]

Sets the values in the pops keys from the whole dictionary structure to the given value.

Usually it is used to remove the parts from the magnetic entities and the pairs that are taking up a lot of space. See the default keys in the pops parameter.

Parameters

dictionarydict

The dictionary structure that we want to strip down

popslist[str], optional

These are the keys that should be set to None in the structure, by defualt [“_dh”, “_ds”, “Gii”, “Gij”, “Gji”, “Vu1”, “Vu2”]

settoAny, optional

The value will be set to this, by defualt []

Returns

dict

The stripped down dictionary