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

Improved test #23

Merged
merged 6 commits into from Jul 16, 2019
Merged

Improved test #23

merged 6 commits into from Jul 16, 2019

Conversation

nquesada
Copy link
Collaborator

@nquesada nquesada commented Jul 10, 2019

Description of the Change:
Makes all the use np.allclose for comparisons. Also adds new test for the torontonian functions
Benefits:
More and better tests
Possible Drawbacks:

Related GitHub Issues:

@nquesada nquesada requested a review from bgupt July 10, 2019 16:26
hafnian/tests/test_torontonian.py Show resolved Hide resolved
hafnian/tests/test_torontonian.py Show resolved Hide resolved
hafnian/tests/test_torontonian.py Outdated Show resolved Hide resolved
hafnian/tests/test_torontonian.py Outdated Show resolved Hide resolved
hafnian/tests/test_torontonian.py Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@nquesada nquesada left a comment

Choose a reason for hiding this comment

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

Thanks for the review @josh146 !

@josh146
Copy link
Member

josh146 commented Jul 10, 2019

It looks like the tolerance might be too low on test_two_mode_squeezed_state_hafnian, as some of the CI checks are failing on this test.

@codecov
Copy link

codecov bot commented Jul 10, 2019

Codecov Report

Merging #23 into master will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff          @@
##           master   #23   +/-   ##
====================================
  Coverage      95%   95%           
====================================
  Files           8     8           
  Lines         560   560           
====================================
  Hits          532   532           
  Misses         28    28

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7798ef...cb42546. Read the comment docs.

@nquesada nquesada merged commit 33a1c9b into master Jul 16, 2019
@nquesada nquesada deleted the improved_test branch July 16, 2019 12:19
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

2 participants