Battery-Intelligence-Lab / galv

An open-source platform for automated storage of battery data with advanced metadata support
https://battery-intelligence-lab.github.io/galv/
Other
33 stars 8 forks source link

Harvester parses non-`.mpr` file values as strings #93

Open mjaquiery opened 1 year ago

mjaquiery commented 1 year ago

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:

  1. Harvest a .txt or .idf file.
  2. Observe the data_type of all columns is str

Expected behavior data_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.