Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #370

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/archive.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to read ANSYS ASCII block formatted CDB files."""

from functools import wraps
import io
import logging
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/cell_quality.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Provides a basic interface to computing the minimum scaled Jacobian
cell quality from VTK unstructured grids.
"""

import numpy as np
import pyvista as pv

Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Methods common to binary files"""

from collections import Counter
import pathlib
import struct
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/cyclic_reader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Supports reading cyclic structural result files from ANSYS"""

from functools import wraps

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/dis_result.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Handle result files from a distributed MAPDL analysis"""

from functools import wraps
import glob
from inspect import currentframe
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
PLANE293
USER300
"""

import numpy as np

# element type to VTK conversion function call map
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/emat.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@
c kygrf global restoring force matrix calculate key

"""

import pathlib

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/examples/downloads.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Functions to download sample datasets from the pymapdl data repository
"""

import os
import shutil
import urllib.request
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/examples/examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""PyMAPDL-Reader example files"""

import inspect
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/full.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
See: <ansys-path>/ansys/customize/include/fdfull.inc

"""

import pathlib
from typing import Union
import warnings
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/mesh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for common class between Archive, and result mesh."""

import numpy as np
import pyvista as pv

Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/misc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for miscellaneous functions and methods"""

import os
import random
import string
Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/plotting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Plotting helper for MAPDL using pyvista"""

import numpy as np
import pyvista as pv

Expand Down
1 change: 1 addition & 0 deletions ansys/mapdl/reader/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Used:
.../ansys/customize/include/fdresu.inc
"""

from collections.abc import Iterable, Sequence
from functools import wraps
import os
Expand Down
1 change: 0 additions & 1 deletion ansys/mapdl/reader/rst_avail.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@

"""


DESCRIPTION = {
"EMS": "miscellaneous summable items(normally includes face pressures)",
"ENF": "nodal forces",
Expand Down
1 change: 1 addition & 0 deletions examples/00-read_binary/custom_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Display custom scalars using an existing mesh.

"""

import numpy as np

from ansys.mapdl.reader import examples
Expand Down
1 change: 1 addition & 0 deletions examples/00-read_binary/load_corner_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
MAPDL (e.g. ``RSYS, 1``).

"""

################################################################################
# Download a small result file containing the corner of a thick pipe
from ansys.mapdl.reader import examples
Expand Down
1 change: 1 addition & 0 deletions examples/00-read_binary/load_shaft_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Visualize a shaft modal analysis

"""

# sphinx_gallery_thumbnail_number = 6

from ansys.mapdl.reader import examples
Expand Down
1 change: 1 addition & 0 deletions examples/00-read_binary/load_thermal_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Visualize the result of verification manual test 33.

"""

from ansys.mapdl.reader import examples

################################################################################
Expand Down
1 change: 1 addition & 0 deletions examples/00-read_binary/pontoon.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Visualize a shell static analysis
"""

# download the pontoon example
from ansys.mapdl.reader import examples

Expand Down
1 change: 1 addition & 0 deletions examples/01-cyclic_results/academic_sector_nd.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
multi-bladed sectors from a modal analysis.

"""

# sphinx_gallery_thumbnail_number = 2

import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
modal analysis.

"""

# sphinx_gallery_thumbnail_number = 2
from ansys.mapdl.reader import examples

Expand Down
1 change: 1 addition & 0 deletions examples/01-cyclic_results/sector_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
First, load the rotor. Notice how printing the rotor class reveals
the details of the rotor result file.
"""

# sphinx_gallery_thumbnail_number = 2
from ansys.mapdl.reader import examples

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Installation file for ansys-mapdl-reader"""

from io import open as io_open
import os

Expand Down
1 change: 1 addition & 0 deletions tests/elements/plane_182_183/test_plane182_183.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Need to add ansys results for verification...

"""

import os

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/elements/shell181/test_shell181.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@


"""

import os

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/elements/shell181/test_shell181_element_coord.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
coordinate system.

"""

import os

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/test_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
mapdl.modal_analysis(nmode=1)

"""

import os
import pathlib
import platform
Expand Down
1 change: 1 addition & 0 deletions tests/testfiles/dist_rst/static/build.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
These example files were built with the following script.
"""

import os

import numpy as np
Expand Down
Loading