cpmodel / cpmodel/mset2

Scenario xlsx - Carbon tax

Open Beginner friendly
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
3
PR merge metrics
No merged PRs in 30d

Description

When inputing a carbon tax in `empty.xlsx`, the code is not able to run (inputed with "ALL" for regions, sectors and fuels).
`BTA.py `converts PROD_COMM to string ('1', '2', …, '120'), but variables.py expects PROD_COMM to be integer (1, 2, …, 120). The dimension validator rejects the entire set.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the carbon-tax scenario using empty.xlsx with "ALL" for regions, sectors, and fuels. Read BTA.py where PROD_COMM is converted to strings and compare it with the integer expectation in variables.py. Confirm that the dimension validator accepts the resulting PROD_COMM values and that the scenario runs successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.