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

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issues with initial parameter list
  • Loading branch information
daminton committed Jul 7, 2021
1 parent 3adb448 commit c228095
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/swiftest/swiftest/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def real2float(realstr):
"""
return float(realstr.replace('d', 'E').replace('D', 'E'))

def read_swiftest_param(param_file_name):
def read_swiftest_param(param_file_name, param):
"""
Reads in a Swiftest param.in file and saves it as a dictionary
Expand All @@ -36,7 +36,7 @@ def read_swiftest_param(param_file_name):
param : dict
A dictionary containing the entries in the user parameter file
"""
param = {'! VERSION': f"Swiftest parameter input from file {param_file_name}"}
param['! VERSION'] = f"Swiftest parameter input from file {param_file_name}"

# Read param.in file
print(f'Reading Swiftest file {param_file_name}')
Expand Down
2 changes: 1 addition & 1 deletion python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def add(self, plname, date=date.today().isoformat()):

def read_param(self, param_file, codename="Swiftest"):
if codename == "Swiftest":
self.param = io.read_swiftest_param(param_file)
self.param = io.read_swiftest_param(param_file, self.param)
self.codename = "Swiftest"
elif codename == "Swifter":
self.param = io.read_swifter_param(param_file)
Expand Down

0 comments on commit c228095

Please sign in to comment.