Skip to content

Commit

Permalink
fix numpy indexing (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski authored Nov 21, 2024
1 parent a3e4e6a commit 8c59622
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ updates:
directory: "/requirements" # Location of package manifests
insecure-external-code-execution: allow
schedule:
interval: "daily"
interval: "monthly"
labels:
- "Maintenance"
- "Dependencies"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "monthly"
2 changes: 1 addition & 1 deletion .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Test
run: pytest -v tests/ --durations=0

- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
if: ${{ runner.os == 'Linux' && matrix.python-version == '3.9' }}
name: 'Upload coverage to Codecov'

Expand Down
8 changes: 4 additions & 4 deletions .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: 24.8.0
rev: 24.10.0
hooks:
- id: black

Expand Down Expand Up @@ -33,7 +33,7 @@ repos:
# exclude: "tests/"

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.0
rev: v19.1.3
hooks:
- id: clang-format
files: |
Expand All @@ -42,14 +42,14 @@ repos:
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: trailing-whitespace
exclude: '.*\.(cdb|rst|dat)$'

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.3
rev: 0.29.4
hooks:
- id: check-github-workflows
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 ANSYS, Inc. All rights reserved.
Copyright (c) 2024 ANSYS, Inc. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion ansys/mapdl/reader/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,9 +746,10 @@ def fix_missing_midside(cells, nodes, celltypes, offset, angles, nnum):

# merge midside nodes
unique_nodes, idx_a, idx_b = unique_rows(temp_nodes[nnodes:])
idx_b = idx_b.ravel()

# rewrite node numbers
cells[mask] = idx_b + nnodes
cells[mask] = idx_b.ravel() + nnodes
nextra = idx_a.shape[0] # extra unique nodes
nodes_new = nodes_new[: nnodes + nextra]
nodes_new[nnodes:] = unique_nodes
Expand Down
10 changes: 5 additions & 5 deletions requirements/requirements_doc.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Sphinx<9
ansys-sphinx-theme==1.1.2
imageio==2.35.1
ansys-sphinx-theme==1.2.2
imageio==2.36.0
nest-asyncio==1.6.0
notfound==1.0.2
pypandoc==1.13
pypandoc==1.14
pyvista==0.43.9
sphinx-copybutton==0.5.2
sphinx-gallery==0.17.1
sphinx-gallery==0.18.0
sphinx-notfound-page==1.0.4
trame==3.6.5
trame==3.7.0
vtk==9.3.1

0 comments on commit 8c59622

Please sign in to comment.