show progress a little

This commit is contained in:
Justus Kuhlmann 2026-04-17 17:34:53 +02:00
commit 29ebafc1c4
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -52,7 +52,9 @@ def _check_db2paths(path: Path, meas_paths: list[str]) -> None:
key = mpath.split("::")[1] key = mpath.split("::")[1]
needed_data[file].append(key) needed_data[file].append(key)
for file in needed_data.keys(): totf = len(needed_data.keys())
for i, file in enumerate(needed_data.keys()):
print(f"Check against file {i}/{totf}: {file}")
get(path, Path(file)) get(path, Path(file))
filedict: dict[str, Any] = pj.load_json_dict(str(path / file)) filedict: dict[str, Any] = pj.load_json_dict(str(path / file))
if not set(filedict.keys()).issubset(needed_data[file]): if not set(filedict.keys()).issubset(needed_data[file]):