various #16

Merged
dan merged 94 commits from various into dev 2023-12-14 14:04:01 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit d7b3373145 - Show all commits

View file

@ -29,7 +29,7 @@ def run():
# ----------------------------- define session_id ---------------------------- #
session_id = get_session_id(args.session_id, args.resume, args.output_dir)
session_id = get_session_id(args.output_dir, args.resume, args.session_id)
# ------------------------------- setup logging ------------------------------ #

View file

@ -5,6 +5,7 @@ import string
from dataclasses import dataclass
from datetime import datetime
from pathlib import Path
from typing import Optional
from urllib.parse import urlunparse
from loguru import logger
@ -68,7 +69,7 @@ def load_json_to_environ(cred_file: Path) -> None:
os.environ[key] = value
def get_session_id(args_session_id: str, args_resume: bool, args_output_dir: Path) -> str:
def get_session_id(args_output_dir: Path, args_resume: bool, args_session_id: Optional[str]) -> str:
"""converts the cli arguments to the correct session_id"""
session_id = args_session_id
if not session_id: