From 2d70bfac4500f5ab1283f2b3d63ccb5c89bf0c26 Mon Sep 17 00:00:00 2001 From: Pip Liggins Date: Tue, 1 Oct 2024 10:56:35 +0200 Subject: [PATCH] update getFloat to return empty strings as None --- adtl/transformations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adtl/transformations.py b/adtl/transformations.py index afc1331..9598ab8 100644 --- a/adtl/transformations.py +++ b/adtl/transformations.py @@ -95,7 +95,7 @@ def getFloat( try: return float(value) except ValueError: - return value + return value if value != "" else None def Percentage(value: float):