We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the defect
No errors
"AttributeError: 'NoneType' object has no attribute 'addRealization'"
Describe how to Reproduce Steps to reproduce the behavior:
Screenshots and Input Files Please attach the input file(s) that generate this error. The simpler the input, the faster we can find the issue.
ErrorReport.zip
Platform (please complete the following information):
This review should occur before any development is performed as a response to this issue.
This review should occur when the issue is imminently going to be closed.
The text was updated successfully, but these errors were encountered:
I see the real issue here being that the user was allowed to make an Optimizer without a SolutionExport node, perhaps?
Sorry, something went wrong.
If someone wants to replicate the problem with one of our test cases, here are the changes needed:
diff --git a/tests/framework/Optimizers/GradientDescent/central_diff.xml b/tests/framework/Optimizers/GradientDescent/central_diff.xml index ab5093669..ac1b01a8d 100644 --- a/tests/framework/Optimizers/GradientDescent/central_diff.xml +++ b/tests/framework/Optimizers/GradientDescent/central_diff.xml @@ -24,14 +24,14 @@ <Input class="DataObjects" type="PointSet">placeholder</Input> <Model class="Models" type="ExternalModel">beale</Model> <Optimizer class="Optimizers" type="SPSA">opter</Optimizer> - <SolutionExport class="DataObjects" type="PointSet">opt_export</SolutionExport> + <!-- <SolutionExport class="DataObjects" type="PointSet">opt_export</SolutionExport> --> <Output class="DataObjects" type="PointSet">optOut</Output> - <Output class="OutStreams" type="Print">opt_export</Output> + <!-- <Output class="OutStreams" type="Print">opt_export</Output> --> </MultiRun> <IOStep name="print"> <Output class="DataObjects" type="PointSet">optOut</Output> - <Output class="OutStreams" type="Print">opt_export</Output> + <!-- <Output class="OutStreams" type="Print">opt_export</Output> --> </MultiRun> <IOStep name="print"> - <Input class="DataObjects" type="PointSet">opt_export</Input> + <!-- <Input class="DataObjects" type="PointSet">opt_export</Input> --> <Input class="DataObjects" type="PointSet">optOut</Input> - <Output class="OutStreams" type="Print">opt_export</Output> + <!-- <Output class="OutStreams" type="Print">opt_export</Output> --> <Output class="OutStreams" type="Print">optOut</Output> </IOStep> </Steps>
This basically needed to have a better error message, so no extra test in the regression system is needed.
PaulTalbot-INL
joshua-cogliati-inl
wangcj05
alfoa
mandd
Successfully merging a pull request may close this issue.
When running an optimization, if is not provided in the code will run the optimization but then fail at the end
Describe the defect
What did you expect to see happen?
No errors
What did you see instead?
"AttributeError: 'NoneType' object has no attribute 'addRealization'"
Do you have a suggested fix for the development team?
Describe how to Reproduce
Steps to reproduce the behavior:
Screenshots and Input Files
Please attach the input file(s) that generate this error. The simpler the input, the faster we can find the issue.
ErrorReport.zip
Platform (please complete the following information):
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.
The text was updated successfully, but these errors were encountered: