Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
added compatibility for out_form = XVEL
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Aug 26, 2021
1 parent d358663 commit 6b7d3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/swiftest/swiftest/init_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def solar_system_horizons(plname, idval, param, ephemerides_start_date, ds):
pldata[key] = Horizons(id=key, id_type='smallbody', location='@sun',
epochs={'start': ephemerides_start_date, 'stop': ephemerides_end_date,
'step': ephemerides_step})
if param['OUT_FORM'] == 'XV':
if (param['OUT_FORM'] == 'XV' or param['OUT_FORM'] == 'XVEL'):
p1.append(pldata[key].vectors()['x'][0] * DCONV)
p2.append(pldata[key].vectors()['y'][0] * DCONV)
p3.append(pldata[key].vectors()['z'][0] * DCONV)
Expand Down

0 comments on commit 6b7d3ba

Please sign in to comment.