Skip to content

Commit 0b21aed

Browse files
committed
FIX: added missing type conversion in config FLTARR, INTARR, etc
1 parent 417a7c6 commit 0b21aed

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/pyrad_proc/pyrad/io/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ def parse_block(line, index, expected_count):
156156
raise ValueError(
157157
f"Expected {arr_count} array items for '{key}'"
158158
)
159-
arr.append(lines[index])
159+
parser = SCALAR_TYPES[ARRAY_TYPE_NAMES[type_str]]
160+
arr.append(parser(lines[index]))
160161
index += 1
161162
result[key] = arr
162163
count += 1

0 commit comments

Comments
 (0)