Demand table should allow for a user-defined future #9
Labels
Comp:Core
This issue has to do with the main bulk of the code or document. (methods, main content)
Comp:Input
This issue has to do with the input component of the code or document. (input parameters, prep)
Difficulty:1-Beginner
This issue does not require expert knowledge and may be a good issue for new contributors.
Priority:3-Desired
This work is important, but not urgent.
Status:1-New
No one has claimed this issue yet. It is in need of solving.
Type:Feature
New feature or feature request
Current behavior:
With
DemandCommodity.add_demand()
, users specify:Desired behavior:
With
DemandCommodity.add_demand()
, users should ALSO be able to specifythe demand for each year rather than have the demand calculated automatically.
E.g.
init_demand=[100, 100, 100, 150, 150, 125]...
Rather than specifying a single number for the first year, an array/list of values were given.
These values would never be calculated by any method available, but represents a future where demand
suddenly skyrockets and then falls back down. Perhaps a future where everything is suddenly electrified followed
by significant development in efficiency in subsequent decades.
Guidance:
In
commodity.py
theDemandCommodity.add_demand()
method should be updated with a conditional argument checking the type of theinit_demand
variable. If the type is a float or integer, the future should be calculated as it is now. If it's a list or an array, then the demand should simply be stored in the commoditydemand
dictionary. In the latter case, the length of the list should also be checked against the number of years specified by the user. They must match.The text was updated successfully, but these errors were encountered: