diff --git a/pyproject.toml b/pyproject.toml index ef79ae6b8..62a93a086 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,14 +35,14 @@ tests = [ "pyvista==0.43.3", "matplotlib==3.8.3", "numpy==1.26.4", - "pytest==8.0.1", + "pytest==8.0.2", "pytest-cov==4.1.0", "joblib==1.3.2", - "pandas==2.2.0", + "pandas==2.2.1", "openpyxl==3.1.2", "scikit-learn==1.4.1.post1", "pytest-xdist==3.5.0", - "ipython==8.22.1", + "ipython==8.22.2", ] doc = [ "recommonmark==0.7.1", @@ -65,7 +65,7 @@ doc = [ "ipywidgets==8.1.2", "joblib==1.3.2", "scikit-learn==1.4.1.post1", - "ipython==8.22.1", + "ipython==8.22.2", "jupyterlab==4.1.2", "sphinx-jinja==2.0.2", "sphinx-autoapi==3.0.0", diff --git a/src/ansys/dyna/core/pre/dynasolution.py b/src/ansys/dyna/core/pre/dynasolution.py index 563d72df8..6c3d59f49 100644 --- a/src/ansys/dyna/core/pre/dynasolution.py +++ b/src/ansys/dyna/core/pre/dynasolution.py @@ -433,8 +433,8 @@ def save_file(self): def quit(self): """Delete remote instance.""" - if self.pim_client is not None: - self.pim_client.close() if self.remote_instance is not None: self.remote_instance.delete() + if self.pim_client is not None: + self.pim_client.close() return diff --git a/src/ansys/dyna/core/solver/dynasolver.py b/src/ansys/dyna/core/solver/dynasolver.py index e702beace..e52fd5fd1 100644 --- a/src/ansys/dyna/core/solver/dynasolver.py +++ b/src/ansys/dyna/core/solver/dynasolver.py @@ -350,10 +350,10 @@ def quit(self): command and continues running. """ self.logger.debug("quit") - if self.pim_client is not None: - self.pim_client.close() if self.remote_instance is not None: self.remote_instance.delete() + if self.pim_client is not None: + self.pim_client.close() request = dynasolver_pb2.QuitServer() # ALWAYS returns ACK, so don't bother checking self.stub.quit_server(request)