Merge pull request 'remove unnecessary output when results are empty' (#28) from feat/empty_find into develop
Some checks failed
Mypy / mypy (push) Failing after 1m11s
Pytest / pytest (3.12) (push) Successful in 1m18s
Pytest / pytest (3.13) (push) Successful in 1m11s
Pytest / pytest (3.14) (push) Successful in 1m13s
Ruff / ruff (push) Successful in 1m2s

Reviewed-on: https://www.kuhl-mann.de/git/git/jkuhl/corrlib/pulls/28
This commit is contained in:
Justus Kuhlmann 2026-04-09 15:57:31 +02:00
commit 8ff555a639

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: