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

Add quad tri support #268

Merged
merged 4 commits into from
Jun 7, 2023
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 .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[flake8]
exclude = venv, __init__.py, build, doc/source/examples
# To be added after refactoring code to be compliant: E501
# To be added after refactoring code to be compliant: E501
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, F401, F403
count = True
max-complexity = 10
Expand Down
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ markComment: >
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
Closed due to inactivity. Feel free to reopen if there is new information
or interest.
or interest.
Thank you!
7 changes: 4 additions & 3 deletions .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, windows-latest]

steps:
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
with:
python-version: 3.7 - 3.11
python-version: 3.8 - 3.11

- name: List generated wheels
run: |
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
# - name: Display MAPDL Logs
# if: always()
# run: cat log.txt

Release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
needs: [doc_build, build, mac_build]
Expand Down Expand Up @@ -274,6 +274,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
./**/*.whl
./**/*.zip
Expand Down
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,23 @@ repos:
# additional_dependencies: [toml]
# exclude: "tests/"

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
hooks:
- id: clang-format
files: |
(?x)^(
ansys/mapdl/reader/cython/[^_].*\.c.*
)$

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: trailing-whitespace
exclude: '.*\.(cdb|rst|dat)$'

# this validates our github workflow files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.1
hooks:
Expand Down
4 changes: 2 additions & 2 deletions ansys/mapdl/reader/cython/_archive.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def py_write_nblock(filename, const int [::1] node_id, int max_node_id,
Double array of node coordinates

angles : np.ndarray, optional


"""
# attach the stream to the python file
Expand Down Expand Up @@ -84,7 +84,7 @@ def py_write_nblock_float(filename, const int [::1] node_id, int max_node_id,
Double array of node coordinates

angles : np.ndarray, optional

"""
# attach the stream to the python file
cdef FILE* cfile = fopen(filename.encode(), mode.encode())
Expand Down
Loading