add list for stat types
Some checks failed
Mypy / mypy (push) Failing after 19s
Pytest / pytest (3.12) (push) Failing after 5s
Pytest / pytest (3.13) (push) Failing after 2s
Pytest / pytest (3.14) (push) Failing after 3s
Ruff / ruff (push) Failing after 2s

This commit is contained in:
Justus Kuhlmann 2026-03-20 12:56:27 +01:00
commit 6b2db911bf
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -39,7 +39,7 @@ def update(
@app.command()
def list(
def lister(
path: str = typer.Option(
str('./corrlib'),
"--dataset",
@ -127,7 +127,7 @@ def stat(
Show the statistics of a given record.
"""
record = mio_load_record(path, record_id)
if isinstance(record, Corr):
if isinstance(record, (list, Corr)):
record = record[0]
statistics = record.idl
print(statistics)