ai_engine/utils/utilities.py
def split_sample_name(sample_name: str) -> str:
    """Split sample name into ROI folder name, area, and subgrid ID."""
    parts = sample_name.split("_")
    roi_folder_name = "_".join(parts[:2])
    area = parts[2]
    subgrid_id = parts[3]
    return roi_folder_name, area, subgrid_id
Split sample name into ROI folder name, area, and subgrid ID.
Split sample name into ROI folder name, area, and subgrid ID.
Split sample name into ROI folder name area and subgrid ID .
def split_sample_name(sample_name: str) -> str:
    parts = sample_name.split("_")
    roi_folder_name = "_".join(parts[:2])
    area = parts[2]
    subgrid_id = parts[3]
    return roi_folder_name, area, subgrid_id
def split_sample_name ( sample_name : str ) -> str : parts = sample_name . split ( "_" ) roi_folder_name = "_" . join ( parts [ : 2 ] ) area = parts [ 2 ] subgrid_id = parts [ 3 ] return roi_folder_name , area , subgrid_id
Split sample name into ROI folder name, area, and subgrid ID.
Split sample name into ROI folder name area and subgrid ID .
"""Split sample name into ROI folder name, area, and subgrid ID."""
sample_name
str