get rid of circular import
Some checks failed
Mypy / mypy (push) Successful in 1m11s
Pytest / pytest (3.12) (push) Failing after 1m27s
Pytest / pytest (3.14) (push) Has been cancelled
Pytest / pytest (3.13) (push) Has been cancelled
Ruff / ruff (push) Successful in 58s

This commit is contained in:
Justus Kuhlmann 2026-05-06 18:12:00 +02:00
commit ac3eb272ad
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -6,7 +6,6 @@ import numpy as np
from .input.implementations import codes from .input.implementations import codes
from .tools import k2m, get_db_file from .tools import k2m, get_db_file
from .tracker import get from .tracker import get
from .integrity import has_valid_times
from .sql import thin_sql_wrapper from .sql import thin_sql_wrapper
from typing import Any, Optional from typing import Any, Optional
from pathlib import Path from pathlib import Path
@ -83,9 +82,6 @@ def _time_filter(results: pd.DataFrame, created_before: Optional[str]=None, cre
result = results.iloc[ind] result = results.iloc[ind]
created_at = dt.datetime.fromisoformat(result['created_at']) created_at = dt.datetime.fromisoformat(result['created_at'])
updated_at = dt.datetime.fromisoformat(result['updated_at']) updated_at = dt.datetime.fromisoformat(result['updated_at'])
db_times_valid = has_valid_times(result)
if not db_times_valid:
raise ValueError('Time stamps not valid for result with path', result["path"])
if created_before is not None: if created_before is not None:
date_created_before = dt.datetime.fromisoformat(created_before) date_created_before = dt.datetime.fromisoformat(created_before)