chemcoord.Cartesian.read_cjson

Cartesian.read_cjson(buf)

Read a cjson file or a dictionary.

The cjson format is specified here.

Parameters:buf (str, dict) – If it is a filepath, the data is read from filepath. If it is a dictionary, the dictionary is interpreted as cjson.
Returns:
Return type:Cartesian