Skip to content

Commit 4fc2b34

Browse files
Construction Years year unit type
1 parent e8559d0 commit 4fc2b34

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/geophires_x/SurfacePlant.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,12 @@ def __init__(self, model: Model):
414414

415415
default_construction_years = 1
416416
self.construction_years = self.ParameterDict[self.construction_years.Name] = intParameter(
417-
"Construction Years",
417+
'Construction Years',
418418
DefaultValue=default_construction_years,
419419
AllowableRange=list(range(1, MAX_CONSTRUCTION_YEARS + 1, 1)),
420-
UnitType=Units.NONE,
420+
UnitType=Units.TIME,
421+
PreferredUnits=TimeUnit.YEAR,
422+
CurrentUnits=TimeUnit.YEAR,
421423
ErrMessage=f'assume default number of years in construction ({default_construction_years})',
422424
ToolTipText=f'Number of years spent in construction (assumes whole years, no fractions). '
423425
f'By default, capital costs are spread evenly over construction years e.g. if total capital '

src/geophires_x_schema_generator/geophires-request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@
13281328
"Construction Years": {
13291329
"description": "Number of years spent in construction (assumes whole years, no fractions). By default, capital costs are spread evenly over construction years e.g. if total capital costs are $500M and there are 2 construction years, then $250M will be spent in both the first and second construction years. For SAM Economic Models, provide Construction CAPEX Schedule to use a custom spread instead.",
13301330
"type": "integer",
1331-
"units": null,
1331+
"units": "yr",
13321332
"category": "Surface Plant",
13331333
"default": 1,
13341334
"minimum": 1,

0 commit comments

Comments
 (0)