From 5c615652f6f6690bfec63032ef8852bcd055e918 Mon Sep 17 00:00:00 2001 From: Carlisle Wishard Date: Thu, 11 Nov 2021 15:31:55 -0500 Subject: [PATCH] removed IF statement checking current directory for BIN_OUT --- python/swiftest/swiftest/simulation_class.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/swiftest/swiftest/simulation_class.py b/python/swiftest/swiftest/simulation_class.py index 47be96e75..465ef9c30 100644 --- a/python/swiftest/swiftest/simulation_class.py +++ b/python/swiftest/swiftest/simulation_class.py @@ -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: