From 65b48ae1d74757a69e09ddb0274317c62972f714 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 03:09:54 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0) - [github.com/pycqa/isort: 5.11.4 → 5.12.0](https://github.com/pycqa/isort/compare/5.11.4...5.12.0) - [github.com/python-jsonschema/check-jsonschema: 0.20.0 → 0.21.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.20.0...0.21.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 59b7bb35..8434b288 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.11.4 + rev: 5.12.0 hooks: - id: isort args: [ @@ -40,6 +40,6 @@ repos: # this validates our github workflow files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.20.0 + rev: 0.21.0 hooks: - id: check-github-workflows From 0d662b22d8b14a4a69c08f32b118e8ebc5bf8fcc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 03:12:36 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ansys/mapdl/reader/archive.py | 1 - ansys/mapdl/reader/common.py | 2 -- ansys/mapdl/reader/full.py | 1 - ansys/mapdl/reader/mesh.py | 1 - ansys/mapdl/reader/rst.py | 1 - tests/test_cyclic.py | 1 + 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ansys/mapdl/reader/archive.py b/ansys/mapdl/reader/archive.py index 10d12d94..65fe5184 100644 --- a/ansys/mapdl/reader/archive.py +++ b/ansys/mapdl/reader/archive.py @@ -642,7 +642,6 @@ def save_as_archive( if include_components: with open(filename, "a") as fid: - # write node components for node_key in grid.point_data: arr = grid.point_data[node_key] diff --git a/ansys/mapdl/reader/common.py b/ansys/mapdl/reader/common.py index 1dc867e9..b9ecb009 100644 --- a/ansys/mapdl/reader/common.py +++ b/ansys/mapdl/reader/common.py @@ -309,10 +309,8 @@ def two_ints_to_long(intl, inth): def read_standard_header(filename): """Reads standard header""" with open(filename, "rb") as f: - endian = "<" if np.fromfile(f, dtype="