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

Commit

Permalink
Changed PathLike to os.PathLike
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Nov 15, 2022
1 parent 14bd2a7 commit 49fdf6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ def run(self,**kwargs):
with subprocess.Popen([self.driver_executable, self.integrator, self.param_file], stdout=subprocess.PIPE, bufsize=1,universal_newlines=True) as p:
for line in p.stdout:
print(line, end='')


return

def _get_valid_arg_list(self, arg_list: str | List[str] | None = None, valid_var: Dict | None = None):
Expand Down Expand Up @@ -2335,7 +2337,7 @@ def read_param(self, param_file, codename="Swiftest", verbose=True):

def write_param(self,
codename: Literal["Swiftest", "Swifter", "Swift"] | None = None,
param_file: str | PathLike | None = None,
param_file: str | os.PathLike | None = None,
param: Dict | None = None,
**kwargs: Any):
"""
Expand Down Expand Up @@ -2506,7 +2508,7 @@ def follow(self, codestyle="Swifter"):

def save(self,
codename: Literal["Swiftest", "Swifter", "Swift"] | None = None,
param_file: str | PathLike | None = None,
param_file: str | os.PathLike | None = None,
param: Dict | None = None,
framenum: int = -1,
**kwargs: Any):
Expand Down

0 comments on commit 49fdf6b

Please sign in to comment.