@@ -5,7 +5,6 @@ use crate::id::define_id_type;
55use crate :: region:: RegionID ;
66use crate :: time_slice:: TimeSliceID ;
77use indexmap:: IndexMap ;
8- use serde:: Deserialize ;
98use serde_string_enum:: DeserializeLabeledStringEnum ;
109use std:: collections:: { HashMap , HashSet } ;
1110use std:: ops:: RangeInclusive ;
@@ -79,7 +78,7 @@ impl Process {
7978}
8079
8180/// Represents a maximum annual commodity flow for a given process
82- #[ derive( PartialEq , Debug , Deserialize , Clone ) ]
81+ #[ derive( PartialEq , Debug , Clone ) ]
8382pub struct ProcessFlow {
8483 /// The commodity produced or consumed by this flow
8584 pub commodity : Rc < Commodity > ,
@@ -102,18 +101,18 @@ pub struct ProcessFlow {
102101/// Type of commodity flow (see [`ProcessFlow`])
103102#[ derive( PartialEq , Default , Debug , Clone , DeserializeLabeledStringEnum ) ]
104103pub enum FlowType {
104+ /// The input to output flow ratio is fixed
105105 #[ default]
106106 #[ string = "fixed" ]
107- /// The input to output flow ratio is fixed
108107 Fixed ,
109- #[ string = "flexible" ]
110108 /// The flow ratio can vary, subject to overall flow of a specified group of commodities whose
111109 /// input/output ratio must be as per user input data
110+ #[ string = "flexible" ]
112111 Flexible ,
113112}
114113
115114/// Additional parameters for a process
116- #[ derive( PartialEq , Clone , Debug , Deserialize ) ]
115+ #[ derive( PartialEq , Clone , Debug ) ]
117116pub struct ProcessParameter {
118117 /// Overnight capital cost per unit capacity
119118 pub capital_cost : f64 ,
0 commit comments