From 32c72043ec33bd1e755ae198c03ec703dc777079 Mon Sep 17 00:00:00 2001 From: algol Date: Thu, 4 Jun 2026 15:09:34 +0100 Subject: [PATCH] fixing invalid literal for int() with base 10 error in cli --- httomo/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httomo/cli.py b/httomo/cli.py index 33781d343..4775c00a4 100644 --- a/httomo/cli.py +++ b/httomo/cli.py @@ -352,7 +352,7 @@ def transform_limit_str_to_bytes(limit_str: str): elif limit_upper.endswith("G"): return int(float(limit_str[:-1]) * 1024**3) else: - return int(limit_str) + return int(float(limit_str)) except ValueError: raise ValueError(f"invalid memory limit string {limit_str}")