From 614fccfae4a93f4e3f1f24ad4d77804da19e4092 Mon Sep 17 00:00:00 2001 From: jkuhl Date: Thu, 27 Nov 2025 15:54:39 +0100 Subject: [PATCH 1/4] Delete .gitmodules --- .gitmodules | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index d41b9e5..0000000 --- a/.gitmodules +++ /dev/null @@ -1,5 +0,0 @@ -[submodule "projects/tmp"] - path = projects/tmp - url = git@kuhl-mann.de:lattice/charm_SF_data.git - datalad-id = 5f402163-77f2-470e-b6f1-64d7bf9f87d4 - datalad-url = git@kuhl-mann.de:lattice/charm_SF_data.git From 4709e4272714bbb11c722eac56f8b02c4b05c2ec Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Thu, 12 Feb 2026 10:21:45 +0100 Subject: [PATCH 2/4] HOTFIX: ds arg not supported by datalad --- corrlib/main.py | 2 +- corrlib/meas_io.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/corrlib/main.py b/corrlib/main.py index ebc923e..525cbd6 100644 --- a/corrlib/main.py +++ b/corrlib/main.py @@ -122,7 +122,7 @@ def import_project(path: str, url: str, owner: Union[str, None]=None, tags: Unio raise ValueError("The dataset does not have a uuid!") if not os.path.exists(path + "/projects/" + uuid): db = path + "/backlogger.db" - dl.get(db, ds=path) + dl.get(db, dataset=path) dl.unlock(db, dataset=path) create_project(path, uuid, owner, tags, aliases, code) move_submodule(path, 'projects/tmp', 'projects/' + uuid) diff --git a/corrlib/meas_io.py b/corrlib/meas_io.py index b98eb6e..fc373db 100644 --- a/corrlib/meas_io.py +++ b/corrlib/meas_io.py @@ -28,7 +28,7 @@ def write_measurement(path, ensemble, measurement, uuid, code, parameter_file=No The uuid of the project. """ db = os.path.join(path, 'backlogger.db') - dl.get(db, ds=path) + dl.get(db, dataset=path) dl.unlock(db, dataset=path) conn = sqlite3.connect(db) c = conn.cursor() @@ -177,7 +177,7 @@ def drop_record(path: str, meas_path: str): file_in_archive = meas_path.split("::")[0] file = os.path.join(path, file_in_archive) db = os.path.join(path, 'backlogger.db') - dl.get(db, ds=path) + dl.get(db, dataset=path) sub_key = meas_path.split("::")[1] dl.unlock(db, dataset=path) conn = sqlite3.connect(db) From fad703a39feb4cd86b243bca63e1c0c01b68a224 Mon Sep 17 00:00:00 2001 From: jkuhl Date: Thu, 12 Feb 2026 10:27:58 +0100 Subject: [PATCH 3/4] bunmp version to 0.2.4 --- corrlib/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corrlib/version.py b/corrlib/version.py index d31c31e..788da1f 100644 --- a/corrlib/version.py +++ b/corrlib/version.py @@ -1 +1 @@ -__version__ = "0.2.3" +__version__ = "0.2.4" From d6dde9bb1184c9c814bac5acda9cfd8262b4a60a Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Fri, 13 Feb 2026 10:46:29 +0100 Subject: [PATCH 4/4] add function to only show a single arg with the find cli --- corrlib/cli.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/corrlib/cli.py b/corrlib/cli.py index b808c13..ff74527 100644 --- a/corrlib/cli.py +++ b/corrlib/cli.py @@ -90,6 +90,11 @@ def find( "--dataset", "-d", ), + arg: str = typer.Option( + str('all'), + "--show", + "-s", + ), ensemble: str = typer.Argument(), corr: str = typer.Argument(), code: str = typer.Argument(), @@ -98,8 +103,12 @@ 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) - print(results) - + if arg == "all": + print(results) + else: + for i in range(len(results)): + print(results[arg].values[i]) + return @app.command() def importer(