calypso.data.manage_group module
- class calypso.data.manage_group.NumpyPrettyPrinter(indent=1, width=80, depth=None, stream=None, *, compact=False, sort_dicts=True, underscore_numbers=False)
Bases:
PrettyPrinter
- format(object, context, maxlevels, level)
Format object for a specific context, returning a string and flags indicating whether the representation is ‘readable’ and whether the object represents a recursive construct.
- calypso.data.manage_group.read_group_raw_csv(fname) dict[int, dict[str, Any]]
Read group information from raw CSV file
Notes
Delimiter character is ‘;’. Header ‘number’ for integer group number must exist. Numpy array is treated by custom NumpyPrettyPrinter.
- Parameters:
fname (str) – File name of csv file stored raw group information.
- Returns:
data – Group information dictionary.
- Return type:
Warning
Line limitation is sys.maxsize characters (2^63=9223372036854775807 in 64-bit system).
- calypso.data.manage_group.read_subgroup_raw_csv(fname)
Read subgroup information from raw CSV file
Notes
Delimiter character is ‘;’. Header ‘symbol_Schoenflies’ must exist.
- calypso.data.manage_group.write_group_raw_csv(fname, dictdata)
Write group information to raw CSV file
Notes
Delimiter character is ‘;’. Header ‘number’ for integer group number must exist. Numpy array is treated by custom NumpyPrettyPrinter.
- Parameters:
See also