idaholab / raven

RAVEN is a flexible and multi-purpose probabilistic risk analysis, validation and uncertainty quantification, parameter optimization, model reduction and data knowledge-discovering framework.
https://raven.inl.gov/
Apache License 2.0
216 stars 132 forks source link

[TASK] Converting InputData ParameterInput back to XML #2263

Closed GabrielSoto-INL closed 4 months ago

GabrielSoto-INL commented 5 months ago

Issue Description

Is your feature request related to a problem? Please describe. In RAVEN and HERON, input specs are created using ParameterInput classes within ravenframework.utils.InputData. These have the capability of being populated with data from XML files (data which is loaded and stored in ElementTree format then converted to ParameterInput classes). It would be useful if there was a way to convert the data from ParameterInput back to ElementTree XML format.

Describe the solution you'd like Within the ParameterInput class, there could be a method to recursively look through the attributes, values and subnodes of the given ParameterInput object; if there are subnodes which are also ParameterInput objects, we would loop through those as well.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.


For Change Control Board: Issue Review

This review should occur before any development is performed as a response to this issue.


For Change Control Board: Issue Closure

This review should occur when the issue is imminently going to be closed.

wangcj05 commented 4 months ago

This issue can be closed with #2264