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

Commit

Permalink
Added missing self
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 4, 2022
1 parent a1b6ca6 commit 5a0e0e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5a0e0e7

Please sign in to comment.