-
Notifications
You must be signed in to change notification settings - Fork 117
Numerical sanity check in quantum espresso test #174
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
Conversation
|
@jenkins-cscs retry daint monch kesch leone |
| self.sanity_patterns = sn.assert_found( | ||
| r'convergence has been achieved', self.stdout) | ||
| property_patterns = { | ||
| 'energy': sn.extractsingle(r'! total energy =' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't use all these spaces here, but I'd replace them with \s+.
|
|
||
| self.sanity_patterns = sn.assert_found( | ||
| r'convergence has been achieved', self.stdout) | ||
| property_patterns = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the reason for defining this dictionary here. You could simply do the following:
energy = sn.extractsingle(...)And use energy directly in the sanity_patterns.
| self.sanity_patterns = sn.all([ | ||
| sn.assert_found(r'convergence has been achieved', self.stdout), | ||
| sn.assert_reference(property_patterns['energy'], -11427.08612278, | ||
| lower_thres=-1e-10, upper_thres=1e-10)]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to use the lower_thres and upper_thres names, since lower thresholds are always negative and upper thresholds are always positive in assert_reference().
|
@victorusu This is fine for me. I you also agree on the numerical part, I can merge it. |
Closes #159