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

Need to find a better way to specify "farm_loc" #328

Closed wanghy-anl closed 5 months ago

wanghy-anl commented 6 months ago

Pull Request Description

What issue does this change request address?

This is not urgent, it can wait after the https://github.com/idaholab/raven/pull/2235 gets merged.

Without installing FARM plugin through raven/scripts/install_plugins.py -s FARM, HERON might occasionally pick up FARM (maybe from previous installation, or existing entries in sys.path?) via the line import FARM.src in HERON/src/validators/Factory.py. A tentative solution is proposed in this PR, but it may not be the best solution:

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

It would be perfect if we can force the code to search the farm_loc only, and import FARM_SISO and FARM_MIMO from that folder. However, I am unsure how to do this properly...

Any advices are appreciated!

Thanks, Haoyu


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 5 months ago

@wanghy-anl this looks good to me for now, and we can look at a more holistic way of finding the paths as part of the installation work this year. I restarted the tests to capture some recent reorganization, but it those pass I can merge this if you're okay with it.

wanghy-anl commented 5 months ago

@PaulTalbot-INL Thanks Paul for looking into this PR. Yes, it would be helpful to figure out a new way to find the paths. I am totally fine with merging this to HERON. Feel free to proceed after the tests are done. Thanks, Haoyu