From 8cd3f3658960e1587394a77649f53e3a3fe74d3f Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Fri, 23 May 2025 07:01:01 +0000 Subject: [PATCH 1/2] bugfix find --- corrlib/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corrlib/cli.py b/corrlib/cli.py index ca2acb2..e1fe75e 100644 --- a/corrlib/cli.py +++ b/corrlib/cli.py @@ -6,7 +6,6 @@ from .toml import import_tomls, update_project, reimport_project from .find import find_record, list_projects from .tools import str2list from .main import update_aliases -from .meas_io import drop_cache as mio_drop_cache import os app = typer.Typer() @@ -91,11 +90,12 @@ def find( ), ensemble: str = typer.Argument(), corr: str = typer.Argument(), + code: str = typer.Argument(), ) -> None: """ Find a record in the backlog at hand. Through specifying it's ensemble and the measured correlator. """ - results = find_record(path, ensemble, corr) + results = find_record(path, ensemble, corr, code) print(results) From e1589a0abbe3e3548313261cd987e217ab6ed0f9 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Fri, 23 May 2025 07:49:46 +0000 Subject: [PATCH 2/2] after merge bugfix --- corrlib/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/corrlib/cli.py b/corrlib/cli.py index e1fe75e..b808c13 100644 --- a/corrlib/cli.py +++ b/corrlib/cli.py @@ -6,8 +6,10 @@ from .toml import import_tomls, update_project, reimport_project from .find import find_record, list_projects from .tools import str2list from .main import update_aliases +from .meas_io import drop_cache as mio_drop_cache import os + app = typer.Typer() @@ -76,7 +78,7 @@ def alias_add( """ Add an alias to a project UUID. """ - alias_list = alias.pülit(",") + alias_list = alias.split(",") update_aliases(path, uuid, alias_list) return