NatLabRockies / NatLabRockies/SAM

Parametric table import not working correctly

Open
#2,096 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. Go to PVWatts-None
  2. Click on Parametrics
  3. Select import, import test.csv
  4. See error
Expected behavior

The import should read system_capacity and other column headings, then read the info into the parametric table.

Screenshots
Image Image

test.csv

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.