Process swft files generated by the swift tracking software.
Provided Functions
load(path: str)
Load a swft file specified by path
.
Returns a dictonary of type {table_name: table}
. Each table is represented by a pandas DataFrame
with four additional attributes:
child: str
: Name of the child table (if any)id_col: str
: Name of column in child table that contains the row ID of the parentpos_col: str
: Name of column in child table that contains the position in parent (optional)units: dict
: Dictionary of type {column_name: unit}
. Does not have to contain an entry for every column.
dump(dataset: dict, path: str)
Save dataset
, a dictionary as specified above, to a file specified by path
.