Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

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

Open
mjaquiery opened this issue Jun 8, 2023 · 0 comments
Open

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

mjaquiery opened this issue Jun 8, 2023 · 0 comments
Labels
bug Something isn't working harvester Harvester code (Python)

Comments

@mjaquiery
Copy link
Collaborator

mjaquiery commented Jun 8, 2023

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.

@mjaquiery mjaquiery added bug Something isn't working harvester Harvester code (Python) labels Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working harvester Harvester code (Python)
Projects
None yet
Development

No branches or pull requests

1 participant