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

adaptive sample crash if multi grid is used by a user and crash if user guide test is slightly modified #704

Closed
10 tasks done
alfoa opened this issue Jul 23, 2018 · 2 comments · Fixed by #762
Closed
10 tasks done

Comments

@alfoa
Copy link
Collaborator

alfoa commented Jul 23, 2018


Issue Description

What did you expect to see happen?

1st issue:
Email from a user:
I was playing around with the limit surface search capability in Raven. I modified the convergence criterion in the file tests/framework/Samplers/AdaptiveLimitSurfaceSearch/test_adaptive_sampler.xml to read

 <Convergence forceIteration="False" limit="3000" subGridTol="1e-4" persistence="50" weight="cdf">1e-3</Convergence>

2nd issue:
If the goal function of the test in raven/tests/framework/user_guide/AdaptiveSamplingStrategies/adaptiveSamplingLSsearch.xml is modified as the attached one, the code crashes (see attached log file)

What did you see instead?

1st issue:
However, after a few iterations, raven stopped with the message "IndexError: pop from empty list". (If I use weight="value", then raven runs to completion.)
2nd issue:
Crash of the code:

    self.matrixDict = {varName: dataSet[varName].values for varName in self.variableDist}
TypeError: 'NoneType' object has no attribute '__getitem__'
Please attach the input file(s) that generate this error. The simpler the input, the faster we can find the issue.

1st issue:
tests/framework/Samplers/AdaptiveLimitSurfaceSearch/test_adaptive_sampler.xml

2nd issue:
tests/framework/user_guide/AdaptiveSamplingStrategies/adaptiveSamplingLSsearch.xml
fail.log
goalFunction.py.txt


For Change Control Board: Issue Review

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

  • 1. Is it tagged with a type: defect or improvement?
  • 2. Is it tagged with a priority: critical, normal or minor?
  • 3. If it will impact requirements or requirements tests, is it tagged with requirements?
  • 4. If it is a defect, can it cause wrong results for users? If so an email needs to be sent to the users.
  • 5. Is a rationale provided? (Such as explaining why the improvement is needed or why current code is wrong.)

For Change Control Board: Issue Closure

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

  • 1. If the issue is a defect, is the defect fixed?
  • 2. If the issue is a defect, is the defect tested for in the regression test system? (If not explain why not.)
  • 3. If the issue can impact users, has an email to the users group been written (the email should specify if the defect impacts stable or master)?
  • 4. If the issue is a defect, does it impact the latest stable branch? If yes, is there any issue tagged with stable (create if needed)?
  • 5. If the issue is being closed without a merge request, has an explanation of why it is being closed been provided?
@alfoa alfoa self-assigned this Jul 23, 2018
@alfoa alfoa changed the title adaptive sample crash if multi grid is used by a user adaptive sample crash if multi grid is used by a user and crash if user guide test is slightly modified Aug 22, 2018
alfoa added a commit that referenced this issue Aug 26, 2018
@wangcj05
Copy link
Collaborator

This issue will impact the users. @alfoa Please write an email for the fix of this issue.

@alfoa
Copy link
Collaborator Author

alfoa commented Aug 27, 2018

Email:
Dear users,
Recently a user reported a defect in case a multi-grid LimitSurface approach was used.
The issue was appearing when a Limit Surface was not identified within a number of iteration == persistence number. The multi-grid was trying to refine the search even if no starting LS was identified. This caused the code to crash.
As PR #762, the issue has been solved and a check has been added.
Thanks
The Raven team

wangcj05 pushed a commit that referenced this issue Aug 27, 2018
* first step...modified working dir of some input files and modified the check coverage script

* modified checkcoverage

* reverted modification in test_adaptive_sampler.xml

* modified location of TestXSD

* fixed check coverage

* added new package for coverage

* Closes #704

* added check if dir exists

* fixed XSD

* added the possibility in InterfacePP to set multiple possible input type with a | symbol

* added doxygen config file

* updated Doxygen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants