qimpy.io.dict

Utilities to manipulate dictionaries used as input to constructors.

Functions

key_cleanup

Clean-up dictionary keys for use in constructors.

flatten

Convert nested dict d to a flat dict with tuple keys.

unflatten

Unpack tuple keys in d to a nested dictionary.

merge

Merge a list of nested dictonaries d_list.

remove_units

Recursively remove any units (convert each qimpy.mpi.Unit to float).