Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added setAddtionalParams method to externalROMLoader #1857

Merged
merged 3 commits into from
Jun 16, 2022
Merged

Added setAddtionalParams method to externalROMLoader #1857

merged 3 commits into from
Jun 16, 2022

Conversation

AnthoneyGriffith
Copy link
Collaborator

@AnthoneyGriffith AnthoneyGriffith commented Jun 15, 2022


Pull Request Description

What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)

#1856

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

Added method to externalROMloader that has xml nodes as inputs for changing the pickledROM attributes of the ROM. Alongside this is a test showing the ability to change the clusteredEvalMode of the ROM with this new method.


For Change Control Board: Change Request Review

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

  • 1. Review all computer code.
  • 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
  • 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
  • 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
  • 5. If significant functionality is added, there must be tests added to check this. Tests should cover all possible options. Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in XML block, the node <internalParallel> to True.
  • 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change. The requirements and the requirements test shall be in sync.
  • 7. The merge request must reference an issue. If the issue is closed, the issue close checklist shall be done.
  • 8. If an analytic test is changed/added is the the analytic documentation updated/added?
  • 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

…anging the pickledROM attributes of the ROM. Alongside this is a test showing the ability to change the clusteredEvalMode of the ROM with this new method
@dylanjm dylanjm changed the title Added method to externalROMloader that has xml nodes as inputs for ch… Added setAddtionalParams method to externalROMLoader Jun 15, 2022
Comment on lines 35 to 41
'''
Decides of application of setAdditionalParams was successful
@ In, runner, externalROMloader object
@ In, before/after, list, list of xml objects
@ In, signal, string, name of signal that exists in ROM
@ Out, string, 'Pass' or 'Fail'
'''
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AnthoneyGriffith could you follow the raven code standards? This applies to all the methods. This is required for any PR. You can check the link: https://github.com/idaholab/raven/wiki/RAVEN-Software-Commentary-Standard

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing those out! I believe I have changed all of them to the correct styling.

@PaulTalbot-INL
Copy link
Collaborator

We're set to update the submodule in RAVEN soon; do you think we'll have this merged soon so we can include it?

Copy link
Collaborator

@wangcj05 wangcj05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks good.

@wangcj05
Copy link
Collaborator

@PaulTalbot-INL @dylanjm anyone want to merge it?

@dylanjm dylanjm merged commit e3bef00 into idaholab:devel Jun 16, 2022
@wangcj05 wangcj05 added the RAVENv2.2 for RAVENv2.2 Release label Jun 16, 2022
@AnthoneyGriffith AnthoneyGriffith deleted the ClusterFlag branch June 16, 2022 18:17
@joshua-cogliati-inl
Copy link
Contributor

joshua-cogliati-inl commented Jun 29, 2022

@AnthoneyGriffith @dylanjm Hm, how is tests/framework/ROM/pickleTests/externalROMloader/arma.pk generated? At some point we will need to update it.

@dylanjm
Copy link
Collaborator

dylanjm commented Jun 29, 2022

@joshua-cogliati-inl That's a good catch. @AnthoneyGriffith is there a way we can add the training XML and data to RAVEN?

@joshua-cogliati-inl
Copy link
Contributor

Thanks for adding generating the arma.pk file in #1878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RAVENv2.2 for RAVENv2.2 Release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants