Compare commits

..

No commits in common. "b51a69bc69b4d634e43adcf86f54fcc3e5201a98" and "373f3476c070c0ff116f5a29f51c068a099a36f2" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View file

@ -9,7 +9,6 @@ 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 from .meas_io import load_record as mio_load_record
import os import os
from pyerrors import Corr
from importlib.metadata import version from importlib.metadata import version
@ -121,14 +120,12 @@ def stat(
"--dataset", "--dataset",
"-d", "-d",
), ),
record_id: str = typer.Argument(), record: str = typer.Argument(),
) -> None: ) -> None:
""" """
Show the statistics of a given record. Show the statistics of a given record.
""" """
record = mio_load_record(path, record_id) record = mio_load_record(path, record)[0]
if isinstance(record, Corr):
record = record[0]
statistics = record.idl statistics = record.idl
print(statistics) print(statistics)
return return

View file

@ -114,7 +114,7 @@ def unlock(path: str, file: str) -> None:
""" """
tracker = get_tracker(path) tracker = get_tracker(path)
if tracker == 'datalad': if tracker == 'datalad':
dl.unlock(os.path.join(path, file), dataset=path) dl.unlock(file, dataset=path)
elif tracker == 'None': elif tracker == 'None':
Warning("Tracker 'None' does not implement unlock.") Warning("Tracker 'None' does not implement unlock.")
pass pass