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
218 stars 133 forks source link

[TASK] Allow functions in samplers/optimizers to be implemented in the same python module #2301

Closed alfoa closed 5 months ago

alfoa commented 5 months ago

Pull Request Description

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

Closes #2300

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

This PR Allows functions in samplers/optimizers to be implemented in the same python module. The old approach (method named ``evaluate'' is still available) but a new approach where a method named like the function is implemented.

@wangcj05 @mandd @idaholab/raven-team This is a modification I did in my local version and I thought it could be useful. Feel free to close/discard this feature/PR.


For Change Control Board: Change Request Review

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

moosebuild commented 5 months ago

Job Mingw Test on f85cedd : invalidated by @alfoa

moosebuild commented 5 months ago

Job Mingw Test on f85cedd : invalidated by @aalfonsi

alfoa commented 5 months ago

@wangcj05 @mandd @joshua-cogliati-inl the windows machine does not seem to work

moosebuild commented 5 months ago

Job Mingw Test on f85cedd : invalidated by @wangcj05

moosebuild commented 5 months ago

Job Mingw Test on f85cedd : invalidated by @joshua-cogliati-inl

failed in fetch

moosebuild commented 5 months ago

Job Mingw Test on f85cedd : invalidated by @alfoa

fetch error

wangcj05 commented 5 months ago

@alfoa FYI, our HPC is under maintenance right now. This outage will last until May 6. Please let me know if you need to merge this PR before that.

alfoa commented 5 months ago

@alfoa FYI, our HPC is under maintenance right now. This outage will last until May 6. Please let me know if you need to merge this PR before that.

@wangcj05 No problem for me. I can use my local branch for now. Let me know if you have comments on this in the meanwhile (that I can address offline).

Thanks a lot

moosebuild commented 5 months ago

Job Mingw Test on f85cedd : invalidated by @joshua-cogliati-inl

failed in fetch

wangcj05 commented 5 months ago

Checklist is good, PR can be merged.

wangcj05 commented 5 months ago

@alfoa Thanks for your contribution, I have merged your PR.