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

Commit

Permalink
removed IF statement checking current directory for BIN_OUT
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Nov 11, 2021
1 parent 32ccaa4 commit 5c61565
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ def __init__(self, codename="Swiftest", param_file="", readbin=True):
dir_path = os.path.dirname(os.path.realpath(param_file))
self.read_param(param_file, codename)
if readbin:
if os.path.exists(self.param['BIN_OUT']):
self.bin2xr()
elif os.path.exists(dir_path + '/' + self.param['BIN_OUT']):
if os.path.exists(dir_path + '/' + self.param['BIN_OUT']):
self.param['BIN_OUT'] = dir_path + '/' + self.param['BIN_OUT']
self.bin2xr()
else:
Expand Down

0 comments on commit 5c61565

Please sign in to comment.