diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-11-18 17:04:20 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-11-18 17:04:20 +0100 |
commit | df02e019684d828811c8c70cde1a10404869c65f (patch) | |
tree | 06fcb4c3f5afcfd1f6077ae310aaca8cb9e8afde | |
parent | 323a99b6bdabce8a157c9d0768bdfcf52b265f04 (diff) |
do not convert scalar observations to boolean ones
-rwxr-xr-x | bin/observations-enum-to-boolean.py | 2 |
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 |