Skip to content

Conversation

@rsarm
Copy link
Contributor

@rsarm rsarm commented Mar 5, 2018

Closes #159

@vkarak
Copy link
Contributor

vkarak commented Mar 5, 2018

@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 ='
Copy link
Contributor

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 = {
Copy link
Contributor

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)])
Copy link
Contributor

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().

@vkarak vkarak modified the milestones: Upcoming sprint, ReFrame sprint 2018w08 Mar 5, 2018
@vkarak
Copy link
Contributor

vkarak commented Mar 5, 2018

@victorusu This is fine for me. I you also agree on the numerical part, I can merge it.

@vkarak vkarak merged commit 3a8f945 into master Mar 5, 2018
@vkarak vkarak deleted the checks/numerical-sanity-espresso branch March 5, 2018 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants