From 27450e235fad34c5ea28f3ee881f2f9c62b1d524 Mon Sep 17 00:00:00 2001 From: Olivier Hoenen Date: Mon, 3 Nov 2025 08:21:24 +0100 Subject: [PATCH 1/2] Fix min_version_guard when AL-Core is not present --- imas/command/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imas/command/helpers.py b/imas/command/helpers.py index 8c664306..cded9ef1 100644 --- a/imas/command/helpers.py +++ b/imas/command/helpers.py @@ -36,7 +36,7 @@ def min_version_guard(al_version: Version): al_version: Minimum imas_core version required for this command. """ used_version = ll_interface._al_version - if used_version >= al_version: + if used_version and used_version >= al_version: return click.echo( f"This command requires at least version {al_version} of the Access Layer." From fb0b015bfd90668f75074760475c0a076e7cfea5 Mon Sep 17 00:00:00 2001 From: Olivier Hoenen Date: Mon, 3 Nov 2025 08:23:40 +0100 Subject: [PATCH 2/2] Remove guard as IMAS-Python dropped the AL4 support --- imas/command/cli.py | 1 - 1 file changed, 1 deletion(-) diff --git a/imas/command/cli.py b/imas/command/cli.py index 5e18d008..a270d834 100644 --- a/imas/command/cli.py +++ b/imas/command/cli.py @@ -102,7 +102,6 @@ def print_ids(uri, ids, occurrence, print_all): ids Name of the IDS to print (e.g. "core_profiles"). occurrence Which occurrence to print (defaults to 0). """ - min_version_guard(Version("5.0")) setup_rich_log_handler(False) with DBEntry(uri, "r") as dbentry: