idaholab / FORCE

The Framework for Optimization of ResourCes and Economics is a collection of software tools, models, and datasets acquired and developed under the Integrated Energy Systems (IES) program to enable analysis of technical and economic viability of myriad IES configurations. FORCE is the consolidating interface and data repository for all the IES toolsets ranging from macro technoeconomic analysis to transient process modeling and experimental validation for integrated energy systems.
MIT License
7 stars 13 forks source link

[DEFECT] Confusing response to bad input to create_componentsets_in_HERON function #15

Closed caleb-sitton-inl closed 2 months ago

caleb-sitton-inl commented 3 months ago

Thank you for the defect report

Defect Description

If the FORCE/src/heron.py/create_componentsets_in_HERON function is called with a HERON xml input that does not contain a <Components> node, it will not respond with clarity. It prints that the components node is missing, then continues until it encounters an error when it tries to reference the unassigned heron_comp_list variable and gives an unhelpful error message.

Steps to Reproduce

Expected Behavior

Decisive behavior is preferred. Multiple options are available, including:

Screenshots and Input Files

Screenshot 2024-06-20 at 8 07 03 AM

f818202e-c5d3-45f1-bb9f-7a8d290b7228

OS

MacOS

OS Version

No response

Dependency Manager

CONDA

For Change Control Board: Issue Review

For Change Control Board: Issue Closure

dylanjm commented 3 months ago

@caleb-sitton-inl Can you please include as part of your issue the full error stack trace? It usually looks something like this:

image

caleb-sitton-inl commented 2 months ago

@dylanjm No problem!