Merge pull request 'remove unnecessary output when results are empty' (#28) from feat/empty_find into develop
Reviewed-on: https://www.kuhl-mann.de/git/git/jkuhl/corrlib/pulls/28
This commit is contained in:
commit
8ff555a639
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue