Skip to content

Commit

Permalink
Nicer code layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
lebigot committed Nov 25, 2011
1 parent 98c959b commit caa4f2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions uncertainties/unumpy/test_unumpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ def _derivatives_close(x, y):
"""

# x and y must depend on the same variables:
if len(set(x.derivatives)
.symmetric_difference(y.derivatives)):
if len(set(x.derivatives).symmetric_difference(y.derivatives)):
return False # Not the same variables

return all( _numbers_close(x.derivatives[var],
Expand Down

0 comments on commit caa4f2c

Please sign in to comment.