Describe the bug
When parsing values from non-.mpr files (e.g. .txt or .idf), all values appear as strings rather than as their actual data type (e.g. float, int).
To Reproduce
Steps to reproduce the behavior:
Harvest a .txt or .idf file.
Observe the data_type of all columns is str
Expected behaviordata_type should be identified correctly.
Additional context
The issue is inside the parser itself. harvest.py's calls to enumerate(generator) return dictionaries where all the values are strings, rather than correctly being identified as the data type they should be.
Describe the bug When parsing values from non-
.mpr
files (e.g..txt
or.idf
), all values appear as strings rather than as their actual data type (e.g. float, int).To Reproduce Steps to reproduce the behavior:
.txt
or.idf
file.data_type
of all columns isstr
Expected behavior
data_type
should be identified correctly.Additional context The issue is inside the parser itself.
harvest.py
's calls toenumerate(generator)
return dictionaries where all the values are strings, rather than correctly being identified as the data type they should be.