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
22 stars 36 forks source link

Fixing KeyError when Optimization Type is not specified and New Tests #315

Closed GabrielSoto-INL closed 10 months ago

GabrielSoto-INL commented 11 months ago

Pull Request Description

What issue does this change request address?

314

318

What are the significant changes in functionality due to this change request?

1) Fixed KeyError when overriding outer Optimizer:

2) Default stats metric:

3) A previously unreachable bug was found and fixed:

4) New XML input script test directory:

5) Outer XML template switches the default Optimizer type from "FiniteDifference" to "GradientDescent" in accordance with newest RAVEN update (https://github.com/idaholab/raven/pull/2177)


For Change Control Board: Change Request Review

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

GabrielSoto-INL commented 11 months ago

"oh, well they run perfectly fine locally..." I forgot that the Model node for RAVEN in the outer.xml will have the path for raven_framework and when I golded it, it had my local path. Unsure how to make this work when running on Civet or Github Actions...

PaulTalbot-INL commented 11 months ago

"oh, well they run perfectly fine locally..." I forgot that the Model node for RAVEN in the outer.xml will have the path for raven_framework and when I golded it, it had my local path. Unsure how to make this work when running on Civet or Github Actions...

Hm, that is tricky. I don't think we have a way to tell the XML differ to exclude particular node paths, but maybe that's the start of an answer?

GabrielSoto-INL commented 10 months ago

RAVEN (via rook) can now ignore certain XML nodes from the XML differ test. With this new feature, we can now test outer XMLs in HERON and ignore the RAVEN executable path