diff --git a/batch_v2.py b/batch_v2.py index 80536b6..2457dd6 100644 --- a/batch_v2.py +++ b/batch_v2.py @@ -163,6 +163,15 @@ def prepare_samples(source_dir: str, job_dir: Path, csv_info: dict) -> dict: sample_csvs = [] total_bytes = 0 for xlsx in sample_xlsx: + # .gge/.esw/.xml — copy as-is, no xlsx conversion + if Path(xlsx).suffix.lower() in ('.gge', '.esw', '.xml'): + import shutil as _shutil + dst = sample_csv_dir / f"{Path(xlsx).stem}.xml" + _shutil.copy2(xlsx, str(dst)) + converted_xlsx.append(xlsx) + sample_csvs.append(str(dst)) + total_bytes += dst.stat().st_size + continue csvs = convert_xlsx_to_csv(xlsx, str(sample_csv_dir)) converted_xlsx.append(xlsx) for c in csvs: