Skip to content

Commit 0b5f644

Browse files
authored
Merge pull request #729 from DiamondLightSource/limit_str_bug
fixing invalid literal for int() with base 10 error in cli.py
2 parents 6a3be04 + 32c7204 commit 0b5f644

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎httomo/cli.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def transform_limit_str_to_bytes(limit_str: str):
352352
elif limit_upper.endswith("G"):
353353
return int(float(limit_str[:-1]) * 1024**3)
354354
else:
355-
return int(limit_str)
355+
return int(float(limit_str))
356356
except ValueError:
357357
raise ValueError(f"invalid memory limit string {limit_str}")
358358

0 commit comments

Comments
 (0)