summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-11-18 17:04:20 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-11-18 17:04:20 +0100
commitdf02e019684d828811c8c70cde1a10404869c65f (patch)
tree06fcb4c3f5afcfd1f6077ae310aaca8cb9e8afde
parent323a99b6bdabce8a157c9d0768bdfcf52b265f04 (diff)
do not convert scalar observations to boolean ones
-rwxr-xr-xbin/observations-enum-to-boolean.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/observations-enum-to-boolean.py b/bin/observations-enum-to-boolean.py
index fc7807c..153ee01 100755
--- a/bin/observations-enum-to-boolean.py
+++ b/bin/observations-enum-to-boolean.py
@@ -24,7 +24,7 @@ def main():
for param_name, distinct_values in distinct_param_values.items():
if len(distinct_values) > 2 and not all(
- map(dfatool.utils.is_numeric, distinct_values)
+ map(lambda x: x is None or dfatool.utils.is_numeric(x), distinct_values)
):
replace_map[param_name] = distinct_values