Remove editor module

This commit is contained in:
Andras Schmelczer 2024-06-22 18:37:24 +01:00
commit c966866abc
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -1,7 +0,0 @@
from pathlib import Path
def get_next_run_name(path: Path, prefix: str = "run") -> str:
run_ids = [int(run.stem.split("_")[1]) for run in path.glob(f"{prefix}_*")]
next_run_id = max(run_ids, default=-1) + 1
return f"{prefix}_{next_run_id}"