Skip to content

Commit

Permalink
Fix some test bugs (somehow passed on travis...)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jan 31, 2021
1 parent 3ada381 commit c4929c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_pv2qdf.py
Expand Up @@ -262,6 +262,6 @@ def test_pvRvz_staeckel_arrayin():
pot=MWPotential,aA=aAS,cutcounter=True)
R,z= 0.8, 0.1
pvRvz= qdf.pvRvz(0.1,0.05,R*numpy.ones(2),z*numpy.ones(2))
assert numpy.all(numpy.log(pvRvz)-numpy.log(qdf.pvRvz(0.1,0.05,R,z))) < 10.**-10., 'pvRvz calculated with R and z array input does not equal to calculated with scalar input'
assert numpy.all(numpy.log(pvRvz)-numpy.log(qdf.pvRvz(0.1,0.05,R,z)) < 10.**-10.), 'pvRvz calculated with R and z array input does not equal to calculated with scalar input'
return None

2 changes: 1 addition & 1 deletion tests/test_qdf.py
Expand Up @@ -649,7 +649,7 @@ def test_pvz_staeckel_arrayin():
pot=MWPotential,aA=aAS,cutcounter=True)
R,z= 0.8, 0.1
pvz= qdf.pvz(0.05,R*numpy.ones(2),z*numpy.ones(2))
assert numpy.all(numpy.log(pvz)-numpy.log(qdf.pvz(0.05,R,z))) < 10.**-10., 'pvz calculated with R and z array input does not equal to calculated with scalar input'
assert numpy.all(numpy.log(pvz)-numpy.log(qdf.pvz(0.05,R,z)) < 10.**-10.), 'pvz calculated with R and z array input does not equal to calculated with scalar input'
return None

def test_setup_diffsetups():
Expand Down

0 comments on commit c4929c9

Please sign in to comment.