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

Cleanup of code in scipy.constants #3585

Closed
wants to merge 4 commits into from

Conversation

kdavies4
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling e94fec7 on kdavies4:cleanup-constants into 15fbaa8 on scipy:master.

@@ -1002,8 +1000,8 @@ def find(sub=None, disp=False):
# sanity check
for key in exact_values:
val = _current_constants[key][0]
if abs(exact_values[key][0] - val) / val > 1e-9:
raise ValueError("Constants.codata: exact values too far off.")
assert abs(exact_values[key][0] - val) / val <= 1e-9, \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should be undone. assert gets stripped out when Python is run with -O. In scipy we don't use any plain assert statements.

@rgommers
Copy link
Member

Besides my one comment, this looks fine to me.

@rgommers
Copy link
Member

Squashed and merged in commit 56e43e9, after removing the assert change above. Thanks @kdavies4.

@rgommers rgommers closed this May 17, 2014
rgommers added a commit that referenced this pull request May 17, 2014
@rgommers rgommers added this to the 0.15.0 milestone May 17, 2014
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.

None yet

4 participants