twoD/export

Functions specifically related to exporting the analysis results of 2D recordings

source

get_all_bout_ids

 get_all_bout_ids (df:pandas.core.frame.DataFrame, event_type:str)

source

get_bout_duration_per_bout_id

 get_bout_duration_per_bout_id (df:pandas.core.frame.DataFrame,
                                event_type:str, event_ids:List[float])

source

get_column_values_at_event_borders

 get_column_values_at_event_borders (df:pandas.core.frame.DataFrame,
                                     event_type:str,
                                     event_ids:List[float],
                                     column_name:str)

source

get_distance_covered_per_event

 get_distance_covered_per_event (df:pandas.core.frame.DataFrame,
                                 event_type:str, event_ids:List[float],
                                 marker_id:str)

source

get_interval_start_and_end_time_per_event

 get_interval_start_and_end_time_per_event
                                            (df:pandas.core.frame.DataFram
                                            e, event_type:str,
                                            event_ids:List[float],
                                            framerate:float)

source

create_session_overview_df

 create_session_overview_df (dfs_to_export_with_individual_bout_dfs:Dict[s
                             tr,pandas.core.frame.DataFrame])

source

get_bout_id_splits_depending_on_direction

 get_bout_id_splits_depending_on_direction
                                            (df:pandas.core.frame.DataFram
                                            e)

source

get_column_name_from_substring

 get_column_name_from_substring (all_columns:List[str], substring:str)

source

add_results_to_session_overview

 add_results_to_session_overview (session_overview:Dict,
                                  df:pandas.core.frame.DataFrame,
                                  event_type:str, event_prefix:str,
                                  bout_ids:List[float])

source

create_parameter_settings_df

 create_parameter_settings_df (logs:Dict)

source

write_xlsx_file_to_disk

 write_xlsx_file_to_disk (base_output_filepath:pathlib.Path,
                          dfs_to_export:Dict[str,pandas.core.frame.DataFra
                          me])