Skip to content

Commit 4473c5d

Browse files
authored
Merge pull request #629 from EnergySystemsModellingLab/other-commodities
Tidy up process input code + make input/input commodities => "other" commodities
2 parents ff47a80 + e7d35e7 commit 4473c5d

6 files changed

Lines changed: 275 additions & 129 deletions

File tree

examples/simple/commodities.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ GASPRD,Gas produced,sed,season
33
GASNAT,Natural gas,sed,season
44
ELCTRI,Electricity,sed,daynight
55
RSHEAT,Residential heating,svd,daynight
6-
CO2EMT,CO2 emitted,ouc,annual
6+
CO2EMT,CO2 emitted,oth,annual

src/commodity.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,11 @@ pub enum CommodityType {
8686
/// Specifies a demand (specified in input files) which must be met by the simulation
8787
#[string = "svd"]
8888
ServiceDemand,
89-
/// Only an input to the simulation, cannot be produced by processes
90-
#[string = "inc"]
91-
InputCommodity,
92-
/// Only an output for the simulation, cannot be consumed by processes
93-
#[string = "ouc"]
94-
OutputCommodity,
89+
/// Either an input or an output to the simulation.
90+
///
91+
/// This represents a commodity which can either be produced or consumed, but not both.
92+
#[string = "oth"]
93+
Other,
9594
}
9695

9796
#[cfg(test)]

0 commit comments

Comments
 (0)