From 8c59622c89c0f6c2e9c3754df38dc132a516306b Mon Sep 17 00:00:00 2001 From: Alex Kaszynski Date: Thu, 21 Nov 2024 09:19:24 -0700 Subject: [PATCH] fix numpy indexing (#517) --- .github/dependabot.yml | 4 ++-- .github/workflows/testing-and-deployment.yml | 2 +- .pre-commit-config.yaml | 8 ++++---- LICENSE | 2 +- ansys/mapdl/reader/mesh.py | 3 ++- requirements/requirements_doc.txt | 10 +++++----- 6 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5273f1df..4d430fa1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,7 +4,7 @@ updates: directory: "/requirements" # Location of package manifests insecure-external-code-execution: allow schedule: - interval: "daily" + interval: "monthly" labels: - "Maintenance" - "Dependencies" @@ -12,4 +12,4 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "daily" + interval: "monthly" diff --git a/.github/workflows/testing-and-deployment.yml b/.github/workflows/testing-and-deployment.yml index dd92d78b..6b159d87 100644 --- a/.github/workflows/testing-and-deployment.yml +++ b/.github/workflows/testing-and-deployment.yml @@ -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' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e9831d69..b9085a21 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black @@ -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: | @@ -42,7 +42,7 @@ 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 @@ -50,6 +50,6 @@ repos: 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 diff --git a/LICENSE b/LICENSE index 00dd7819..13278404 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/ansys/mapdl/reader/mesh.py b/ansys/mapdl/reader/mesh.py index f25092e5..922178dc 100644 --- a/ansys/mapdl/reader/mesh.py +++ b/ansys/mapdl/reader/mesh.py @@ -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 diff --git a/requirements/requirements_doc.txt b/requirements/requirements_doc.txt index 26665b89..4f3c5ca5 100644 --- a/requirements/requirements_doc.txt +++ b/requirements/requirements_doc.txt @@ -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