You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementation being handled by @aimiktena & @natakokota (I can't assign them directly because they are not added as collaborators on this repo)
Download a fresh copy of 01d-jedi-geothermal-model-rel-gt12-23-16.xlsm and open it in Excel (other programs such as Google Sheets or Numbers on Mac may also work, although Excel is recommended to reduce chances of compatibility issues affecting formulas). It is strongly recommended that you DO NOT REUSE the same original file repeatedly in order to reduce the risk of accidentally editing it. You should be careful to avoid editing the sheet at all throughout this entire process, as it will be hard to catch and correct alterations.
Pick an initial output to calculate from the Summary Results sheet, i.e. Jobs (FTE) Total Impacts in cell B28:
Add the output to JediGeothermalResult, suffixed with units, i.e. operating_years_annual_earnings_MUSD:
Add a python function to src/jedi_geothermal/__init__.py that implements the formula you wrote down, calculating the output from the inputs, i.e.
defget_operating_years_annual_earnings_MUSD(resource_depth_m):
returnresource_depth_m*5# dummy example formula, obviously =]
Call the function in get_jedi_geothermal_result using input values from input_params and setting the corresponding output on JediGeothermalResult, i.e.
classJediGeothermalClient:
def__init__(self):
self._logger=_loggerdefget_jedi_geothermal_result(self, input_params: JediGeothermalInputParameters) ->JediGeothermalResult:
self._logger.info(f'Calculating JEDI result for: {input_params}')
result: JediGeothermalResult=JediGeothermalResultresult.operating_years_annual_earnings_MUSD=get_operating_years_annual_earnings_MUSD(input_params.resource_depth_m)
# [... other calculations ...]returnresult
Parent issue: #169
Implementation being handled by @aimiktena & @natakokota (I can't assign them directly because they are not added as collaborators on this repo)
Download a fresh copy of 01d-jedi-geothermal-model-rel-gt12-23-16.xlsm and open it in Excel (other programs such as Google Sheets or Numbers on Mac may also work, although Excel is recommended to reduce chances of compatibility issues affecting formulas). It is strongly recommended that you DO NOT REUSE the same original file repeatedly in order to reduce the risk of accidentally editing it. You should be careful to avoid editing the sheet at all throughout this entire process, as it will be hard to catch and correct alterations.
Pick an initial output to calculate from the Summary Results sheet, i.e. Jobs (FTE) Total Impacts in cell B28:
Add the output to
JediGeothermalResult
, suffixed with units, i.e.operating_years_annual_earnings_MUSD
:GEOPHIRES-X/src/jedi_geothermal/__init__.py
Lines 18 to 28 in 94ddec5
Using Excel, follow & write down the formulas that calculate that output until you get back to inputs
Add the required inputs to
JediGeothermalInputParameters
(if not already present), i.e.resource_depth_m
:GEOPHIRES-X/src/jedi_geothermal/__init__.py
Lines 31 to 40 in 94ddec5
Add a python function to
src/jedi_geothermal/__init__.py
that implements the formula you wrote down, calculating the output from the inputs, i.e.get_jedi_geothermal_result
using input values frominput_params
and setting the corresponding output onJediGeothermalResult
, i.e.tests/jedi_geothermal_tests/test_jedi_geothermal.py
i.e.The text was updated successfully, but these errors were encountered: