Skip to content

Commit

Permalink
Can't (*shape,4) in python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed May 22, 2019
1 parent 1afd8b6 commit e2da890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_orbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def test_integration_dxdv_2d():
Orbit([1.2,-0.3,0.7,5.])]
orbits= Orbits(orbits_list)
numpy.random.seed(1)
dxdv= (2.*numpy.random.uniform(size=(*orbits.shape,4))-1)/10.
dxdv= (2.*numpy.random.uniform(size=orbits.shape+(4,))-1)/10.
# Default, C integration
integrator= 'dopr54_c'
orbits.integrate_dxdv(dxdv,times,lp,method=integrator)
Expand All @@ -382,7 +382,7 @@ def test_integration_dxdv_2d_rectInOut():
Orbit([1.2,-0.3,0.7,5.])]
orbits= Orbits(orbits_list)
numpy.random.seed(1)
dxdv= (2.*numpy.random.uniform(size=(*orbits.shape,4))-1)/10.
dxdv= (2.*numpy.random.uniform(size=orbits.shape+(4,))-1)/10.
# Default, C integration
integrator= 'dopr54_c'
orbits.integrate_dxdv(dxdv,times,lp,method=integrator,
Expand Down

0 comments on commit e2da890

Please sign in to comment.