remove unnecessary output when results are empty #28

Merged
jkuhl merged 1 commit from feat/empty_find into develop 2026-04-09 15:57:31 +02:00
Showing only changes of commit 7275fdd4f3 - Show all commits

remove unnecessary output when results are empty
All checks were successful
Mypy / mypy (pull_request) Successful in 1m11s
Pytest / pytest (3.12) (pull_request) Successful in 1m28s
Pytest / pytest (3.13) (pull_request) Successful in 1m17s
Pytest / pytest (3.14) (pull_request) Successful in 1m12s
Ruff / ruff (pull_request) Successful in 1m3s

Justus Kuhlmann 2026-04-08 17:28:54 +02:00
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -108,6 +108,8 @@ def find(
Find a record in the backlog at hand. Through specifying it's ensemble and the measured correlator.
"""
results = find_record(path, ensemble, corr, code)
if results.empty:
return
if arg == 'all':
print(results)
else: