Commit c4035b6 1 parent f2f76d5 commit c4035b6 Copy full SHA for c4035b6
File tree 1 file changed +2
-17
lines changed
1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -1743,7 +1743,7 @@ def integrate_dxdv(
1743
1743
1744
1744
Notes
1745
1745
-----
1746
- - Possible integration methods are:
1746
+ - Possible integration methods are the non-symplectic ones in galpy :
1747
1747
1748
1748
- 'odeint' for scipy's odeint
1749
1749
- 'rk4_c' for a 4th-order Runge-Kutta integrator in C
@@ -1761,22 +1761,7 @@ def integrate_dxdv(
1761
1761
raise AttributeError (
1762
1762
"integrate_dxdv is only implemented for 4D (planar) orbits"
1763
1763
)
1764
- if method .lower () not in [
1765
- "odeint" ,
1766
- "dop853" ,
1767
- "rk4_c" ,
1768
- "rk6_c" ,
1769
- "dopr54_c" ,
1770
- "dop853_c" ,
1771
- ]:
1772
- if "leapfrog" in method .lower () or "symplec" in method .lower ():
1773
- raise ValueError (
1774
- f"{ method :s} is not a valid `method for integrate_dxdv, because symplectic integrators cannot be used`"
1775
- )
1776
- else :
1777
- raise ValueError (
1778
- f"{ method :s} is not a valid `method for integrate_dxdv`"
1779
- )
1764
+ self .check_integrator (method , no_symplec = True )
1780
1765
pot = flatten_potential (pot )
1781
1766
_check_potential_dim (self , pot )
1782
1767
_check_consistent_units (self , pot )
You can’t perform that action at this time.
0 commit comments