Compare commits

..

No commits in common. "06b07bc59060d1a294a412f0cfba15049b587d60" and "5e712b64cf46d1202134f150954daee737dc4759" have entirely different histories.

View file

@ -7,7 +7,6 @@ from .find import find_record, list_projects
from .tools import str2list from .tools import str2list
from .main import update_aliases from .main import update_aliases
from .meas_io import drop_cache as mio_drop_cache from .meas_io import drop_cache as mio_drop_cache
from .meas_io import load_record as mio_load_record
import os import os
from importlib.metadata import version from importlib.metadata import version
@ -36,7 +35,6 @@ def update(
update_project(path, uuid) update_project(path, uuid)
return return
@app.command() @app.command()
def list( def list(
path: str = typer.Option( path: str = typer.Option(
@ -96,39 +94,12 @@ def find(
ensemble: str = typer.Argument(), ensemble: str = typer.Argument(),
corr: str = typer.Argument(), corr: str = typer.Argument(),
code: str = typer.Argument(), code: str = typer.Argument(),
arg: str = typer.Option(
str('all'),
"--argument",
"-a",
),
) -> None: ) -> None:
""" """
Find a record in the backlog at hand. Through specifying it's ensemble and the measured correlator. Find a record in the backlog at hand. Through specifying it's ensemble and the measured correlator.
""" """
results = find_record(path, ensemble, corr, code) results = find_record(path, ensemble, corr, code)
if arg == 'all':
print(results) print(results)
else:
for r in results[arg].values:
print(r)
@app.command()
def stat(
path: str = typer.Option(
str('./corrlib'),
"--dataset",
"-d",
),
record: str = typer.Argument(),
) -> None:
"""
Show the statistics of a given record.
"""
record = mio_load_record(path, record)[0]
statistics = record.idl
print(statistics)
return
@app.command() @app.command()