NatLabRockies / NatLabRockies/SAM
Parametric table import not working correctly
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 486
- Forks
- 219
- Avg merge
- 10h 10m
- Merged PRs (30d)
- 2
Description
Describe the bug
Importing parametric tables from a .csv or .xlsx file does not seem to be working correctly. The import cannot location variables by label ('Namplate system capacity') or variable name ('system_capacity'), then tries to read the numeric values down the column.
To Reproduce
Steps to reproduce the behavior:
- Go to PVWatts-None
- Click on Parametrics
- Select import, import test.csv
- See error
Expected behavior
The import should read system_capacity and other column headings, then read the info into the parametric table.
Screenshots
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by reproducing the failure in PVWatts-None through Parametrics using the attached test.csv, then trace the import path for CSV and XLSX headings. Done means the importer recognizes labels such as “Namplate system capacity” and names such as “system_capacity,” and loads their numeric columns into the parametric table.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100