From 5a0e0e797329438fc2681abe2c5616b02dc309cc Mon Sep 17 00:00:00 2001 From: David A Minton Date: Sun, 4 Dec 2022 11:00:54 -0500 Subject: [PATCH] Added missing self --- python/swiftest/swiftest/simulation_class.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/swiftest/swiftest/simulation_class.py b/python/swiftest/swiftest/simulation_class.py index 167d86e3b..5b9aef212 100644 --- a/python/swiftest/swiftest/simulation_class.py +++ b/python/swiftest/swiftest/simulation_class.py @@ -312,7 +312,7 @@ def __init__(self,read_param: bool = False, read_old_output_file: bool = False, # then using the arguments passed via **kwargs. #-------------------------- - # Lowest Priority: Defaults + # Lowest Priority: Defaults: #-------------------------- # Quietly set all parameters to their defaults. self.set_parameter(verbose=False,param_file=param_file) @@ -2670,7 +2670,7 @@ def read_output_file(self,read_init_cond : bool = True): self.data = io.swiftest2xr(param_tmp, verbose=self.verbose) if self.verbose: print('Swiftest simulation data stored as xarray DataSet .data') if read_init_cond: - if "NETCDF" in param['IN_TYPE']: + if "NETCDF" in self.param['IN_TYPE']: param_tmp['BIN_OUT'] = os.path.join(self.sim_dir, self.param['NC_IN']) self.ic = io.swiftest2xr(param_tmp, verbose=self.verbose) else: