idaholab / HERON

Holistic Energy Resource Optimization Network (HERON) is a modeling toolset and plugin for RAVEN to accelerate stochastic technoeconomic assessment of the economic viability of various grid-energy system configurations, especially with application to electrical grids and integrated energy systems (IES).
Apache License 2.0
24 stars 38 forks source link

Wanghy/farm gamma validators #175

Closed wanghy-anl closed 2 years ago

wanghy-anl commented 2 years ago

Pull Request Description

What issue does this change request address?

Closes #176

  1. Please close PR #172. This PR contains the correct version of "get_cashflow_loc" and "get_farm_loc" in src/_utils.py
  2. Added the "%FARM%" keyword resolution in src/Placeholder.py, for the user to specify the ARMA ROM enclosed in FARM directory.
  3. Added the FARM validators location to src/validators/Factory.py
What are the significant changes in functionality due to this change request?

The FARM validators are removed from heron/src/validators, and a bridge was added in heron/src/validators/Factory.py


For Change Control Board: Change Request Review

The following review must be completed by an authorized member of the Change Control Board.

PaulTalbot-INL commented 2 years ago

The failed test shows the following failure for HERON:

Starting HERON ...
 ... RAVEN located at "/home/civet/civet/build_0/raven"
 ... Activating CONDA environment ...
CONDA
raven_libraries_alt      /home/civet/.conda/envs/raven_libraries_alt
raven_libraries       *  /home/civet/miniconda3/envs/raven_libraries
Running HERON ...
Loading plugin "TEAL" at /home/civet/civet/build_0/raven/plugins/TEAL
 ... successfully imported "TEAL" ...
Loading plugin "HERON" at /home/civet/civet/build_0/HERON
 ... successfully imported "HERON" ...
Loading plugin "SR2ML" at /home/civet/civet/build_0/raven/plugins/SR2ML
 ... successfully imported "SR2ML" ...
Loading plugin "LOGOS" at /home/civet/civet/build_0/raven/plugins/LOGOS
 ... successfully imported "LOGOS" ...
Loading plugin "SRAW" at /home/civet/civet/build_0/raven/plugins/SRAW
 ... successfully imported "SRAW" ...
Loading plugin "FARM" at /home/civet/civet/build_0/raven/plugins/FARM
 ... successfully imported "FARM" ...
Loading plugin "ExamplePlugin" at /home/civet/civet/build_0/raven/plugins/ExamplePlugin
 ... successfully imported "ExamplePlugin" ...
Traceback (most recent call last):
  File "/home/civet/civet/build_0/HERON/src/main.py", line 10, in <module>
    import input_loader
  File "/home/civet/civet/build_0/HERON/src/input_loader.py", line 10, in <module>
    import Cases
  File "/home/civet/civet/build_0/HERON/src/Cases.py", line 25, in <module>
    from validators.Factory import known as known_validators
  File "/home/civet/civet/build_0/HERON/src/validators/Factory.py", line 19, in <module>
    from FARM.src.FARMValidatorsForHeron import FARM_Beta, FARM_Gamma_LTI, FARM_Gamma_FMU
ModuleNotFoundError: No module named 'FARM.src.FARMValidatorsForHeron'
 ... Errors were encountered while running HERON.
wanghy-anl commented 2 years ago

@PaulTalbot-INL Paul, I see the issue. I haven't updated the submodule version of FARM yet, and this error should disappear after that change. Let me work with Congjian to get it fixed. I will keep you posted. Thanks, Haoyu

wanghy-anl commented 2 years ago

Hey Paul, Congjian merged my raven PR https://github.com/idaholab/raven/pull/1846 and the FARM submodule ID is updated. Could you re-start the check on CentOS 8 server? @PaulTalbot-INL

moosebuild commented 2 years ago

Job CentOS 8 on cd1b049 : invalidated by @dgarrett622

Restart due to submodule update

wanghy-anl commented 2 years ago

It seems that this PR passed all the tests. @PaulTalbot-INL @dgarrett622 Gents, could you merge this PR and update the HERON submodule ID in raven? Thanks, Haoyu

dgarrett622 commented 2 years ago

@wanghy-anl All HERON PRs need to be tied to an issue. I don't see an issue related to this PR, could you open an issue and link this PR to that issue?

PaulTalbot-INL commented 2 years ago

Once @dgarrett622 approves and merges this, it might be a couple days before we update the HERON submodule in RAVEN, just so we can get a couple other changes merged in as well. Will that cause any issue for you @wanghy-anl ?

wanghy-anl commented 2 years ago

Once @dgarrett622 approves and merges this, it might be a couple days before we update the HERON submodule in RAVEN, just so we can get a couple other changes merged in as well. Will that cause any issue for you @wanghy-anl ?

No worries Paul, that's not a pressing issue. Keeping the same HERON submodule ID will only cause the FARM validator tests to fail on raven test servers, which is allowed by raven. After updating the HERON submodule ID adopting the changes in this PR, these failed FARM validator tests will pass.

wanghy-anl commented 2 years ago

@wanghy-anl All HERON PRs need to be tied to an issue. I don't see an issue related to this PR, could you open an issue and link this PR to that issue?

Sure, and issue #176 is opened.