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: