ericagol / NbodyGradient.jl

N-body integrator computes derivatives with respect to initial conditions for TTVs, RV, Photodynamics & more
MIT License
20 stars 9 forks source link

Add type promotion #88

Open langfzac opened 1 year ago

langfzac commented 1 year ago

Right now, specifiying initial conditions requires the user to enter everything as a float. I.e., this is not allowed: b = Elements(m=9e-5, P=10), but this is: b = Elements(m=9e-5, P=10.0). I need to add some higher-level functions to allow for these to be equivalent.