Skip to content

Commit

Permalink
Fixed escape character
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Jul 1, 2024
1 parent 9598345 commit cc80192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rebound/horizons.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def query_horizons_for_particle(mass_unit=None, particle=None, m=None, x=None, y
else:
# Assume date is in JD with format JDxxxxxx.xxxx
datestart = date
date_f = float(re.sub("[^0-9\.]","",date))
date_f = float(re.sub("[^0-9\\.]","",date))
dateend = "JD%.8f"%(date_f+0.1)

print("Searching NASA Horizons for '{}'... ".format(particle))
Expand Down

0 comments on commit cc80192

Please sign in to comment.