slitflow.setreqs module
This module includes functions used in the set_reqs method of the Data class. The required data must be sorted to align the correspondence between the data.
- fit_1to0(reqs)[source]
Keep reqs[0] data even that doesn’t contain in reqs[1].
This function can be used to render movies with trajectories that some frames doesn’t contain any trajectories.
- copy_1to0(reqs)[source]
Sort reqs[1] according to the reqs[0] data structure.
This function can be used if reqs[0] is split into multiple files while reqs[1] is not. reqs[1] is selected to fit reqs[0] data.
- set_cols(index)[source]
Return column names without _file and _split columns from index table.
- Parameters:
index (pandas.DataFrame) – Index table.
- Returns:
List of column names
- Return type: