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

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

@mjaquiery

Description

@mjaquiery

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingharvesterHarvester code (Python)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions