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

Commit

Permalink
Put RHILL_PRESENT check back into the swiftest io python routine
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 6, 2021
1 parent a0c0858 commit 5511bea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/swiftest/swiftest/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ def swifter_xr2infile(ds, param, framenum=-1):
RSun = np.double(cb['Radius'])
param['J2'] = np.double(cb['J_2'])
param['J4'] = np.double(cb['J_4'])
param['RHILL_PRESENT'] = "YES"

if param['IN_TYPE'] == 'ASCII':
# Swiftest Central body file
Expand Down Expand Up @@ -1228,7 +1227,6 @@ def swifter2swiftest(swifter_param, plname="", tpname="", cbname="", conversion_
swiftest_param.pop('C', None)
swiftest_param.pop('J2', None)
swiftest_param.pop('J4', None)
swiftest_param.pop('RHILL_PRESENT', None)

swiftest_param['DISCARD_OUT'] = conversion_questions.get('DISCARD_OUT', '')
if not swiftest_param['DISCARD_OUT']:
Expand Down Expand Up @@ -1279,7 +1277,6 @@ def swiftest2swifter_param(swiftest_param, J2=0.0, J4=0.0):
tmp = swifter_param.pop(key, None)
swifter_param['J2'] = J2
swifter_param['J4'] = J4
swifter_param['CHK_CLOSE'] = "YES"
if swifter_param['OUT_STAT'] == "REPLACE":
swifter_param['OUT_STAT'] = "UNKNOWN"
swifter_param['! VERSION'] = "Swifter parameter file converted from Swiftest"
Expand Down

0 comments on commit 5511bea

Please sign in to comment.