scripts/create_label_based_data_structure.py
def create_label_based_file_structure(excel_file_path: pathlib.Path,
                                      raw_data_root_dir: pathlib.Path,
                                      dst_root_dir: pathlib.Path) -> None:
    """
    Copies the raw data .mjpg files from the Weta Watcher raw data file structure
    to a new file structure based on labels.
    :param excel_file_path: Path to the excel file with label information
    :param raw_data_root_dir: Path to the root directory containing the raw Weta Watcher file structure.
    :param dst_root_dir: Path to the root directory destination to store the label based file structure.
    """

    content = read_excel_to_dataframe(excel_file_path=excel_file_path)
    dataframe = stack_rows_from_dataframe_dictionary(dataframe_dict=content)

    dst_root_dir.mkdir(exist_ok=True)

    copy_files_to_label_based_file_structure(file_dataframe=dataframe, src_dir=raw_data_root_dir, dst_dir=dst_root_dir)

    Copies the raw data .mjpg files from the Weta Watcher raw data file structure
    to a new file structure based on labels.
    :param excel_file_path: Path to the excel file with label information
    :param raw_data_root_dir: Path to the root directory containing the raw Weta Watcher file structure.
    :param dst_root_dir: Path to the root directory destination to store the label based file structure.
    
Copies the raw data .mjpg files from the Weta Watcher raw data file structure
to a new file structure based on labels.
Copies the raw data . mjpg files from the Weta Watcher raw data file structure to a new file structure based on labels .
def create_label_based_file_structure(excel_file_path: pathlib.Path,
                                      raw_data_root_dir: pathlib.Path,
                                      dst_root_dir: pathlib.Path) -> None:
    content = read_excel_to_dataframe(excel_file_path=excel_file_path)
    dataframe = stack_rows_from_dataframe_dictionary(dataframe_dict=content)
    dst_root_dir.mkdir(exist_ok=True)
    copy_files_to_label_based_file_structure(file_dataframe=dataframe, src_dir=raw_data_root_dir, dst_dir=dst_root_dir)
def create_label_based_file_structure ( excel_file_path : pathlib . Path , raw_data_root_dir : pathlib . Path , dst_root_dir : pathlib . Path ) -> None : content = read_excel_to_dataframe ( excel_file_path = excel_file_path ) dataframe = stack_rows_from_dataframe_dictionary ( dataframe_dict = content ) dst_root_dir . mkdir ( exist_ok = True ) copy_files_to_label_based_file_structure ( file_dataframe = dataframe , src_dir = raw_data_root_dir , dst_dir = dst_root_dir )
Copies the raw data .mjpg files from the Weta Watcher raw data file structure
to a new file structure based on labels.
Copies the raw data . mjpg files from the Weta Watcher raw data file structure to a new file structure based on labels .
"""
    Copies the raw data .mjpg files from the Weta Watcher raw data file structure
    to a new file structure based on labels.
    :param excel_file_path: Path to the excel file with label information
    :param raw_data_root_dir: Path to the root directory containing the raw Weta Watcher file structure.
    :param dst_root_dir: Path to the root directory destination to store the label based file structure.
    """
excel_file_path
pathlib.Path
Path to the excel file with label information
Path to the excel file with label information
raw_data_root_dir
pathlib.Path
Path to the root directory containing the raw Weta Watcher file structure.
Path to the root directory containing the raw Weta Watcher file structure .
dst_root_dir
pathlib.Path
Path to the root directory destination to store the label based file structure.
Path to the root directory destination to store the label based file structure .