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

Support Numpy 2.x #128

Merged
merged 6 commits into from
Nov 20, 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
7 changes: 2 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,8 @@ jobs:
# miniforge-variant: Mambaforge-pypy3
- os: macos
environment-file: .github/environment.yml
miniforge-variant: Mambaforge
- os: windows
environment-file: .github/environment.yml
miniforge-variant: Mambaforge
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -129,15 +127,14 @@ jobs:

- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: ${{ matrix.miniforge-variant }}
environment-file: ${{ matrix.environment-file }}
condarc-file: .github/condarc.yml
use-mamba: true
# use-mamba: true

- name: Verify Python environment
shell: bash -l {0}
run: |
mamba list
conda list
python --version

- name: Install dependencies
Expand Down
26 changes: 23 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ Security in case of vulnerabilities.

TBD

## [2.0.1] - 2024-11-20

Allow use of pymech with NumPy 2.x

### Changed

- Removed upper bound for Numpy from packaging metadata, pyproject.toml

## [2.0.0] - 2024-10-09

Supports Python 3.9 and above, from now on to make use of concise
Expand Down Expand Up @@ -61,7 +69,6 @@ Previously deprecated features are now removed

### Added


- [Citeable in Zenodo](https://zenodo.org/badge/latestdoi/50511298)!
- New extra dependency groups for install as `pip install pymech[opt]` and `pip
install pymech[vtk]` respectively. There is also a `[full]` group which
Expand Down Expand Up @@ -122,63 +129,76 @@ improvements. This will be the last release to support Python 3.6 and Xarray <
## [1.4.0] - 2020-11-16

### Added

- Functions `readre2` and `writere2` to read/write binary .re2 Nek5000 meshes

### Fixed

- indexing bug in the boundary conditions parameters in `readrea`

### Changed

- Ignore some invalid 'E' internal boundary conditions in `readrea`
since they are written this way by re2torea and ignored by Nek5000.


## [1.3.3] - 2020-09-29

### Fixed

- Various fixes -- including writing element map, correct order for min/max
metadata -- in `writenek`

### Added

- {meth}`pymech.core.HexaData.merge` to merge meshes together and build proper connectivity

## [1.3.2] - 2020-09-23

### Fixed

- `writenek` detects system endianness and byte-swaps arrays, if needed, before
writing

### Removed

- Warnings while reading/writing scalars

## [1.3.1] - 2020-09-17

### Changed

- use ndarray.tofile() for faster output

## [1.3.0.post0] - 2020-07-16

### Fixed

- Packaging issue of sdist and wheel. Now uses `find_packages` instead of package name.

## [1.3.0] - 2020-07-16

### Added

- Dataset module which extends xarray

### Changed

- Faster `readnek` function uses less for loops
- Lazy load {class}`pymech.core.DataLims` limits as properties
- Autogenerate documentation using sphinx extension `autodoc`

## [1.2.0] - 2020-03-18

### Added

- License GPL v3 or later

### Changed

- Miscellaneous improvements in documentation, testing and packaging

[Unreleased]: https://github.com/eX-Mech/pymech/compare/2.0.0...HEAD
[Unreleased]: https://github.com/eX-Mech/pymech/compare/2.0.1...HEAD
[2.0.1]: https://github.com/eX-Mech/pymech/compare/2.0.0...2.0.1
[2.0.0]: https://github.com/eX-Mech/pymech/compare/1.5.0...2.0.0
[1.5.0]: https://github.com/eX-Mech/pymech/compare/1.4.1...1.5.0
[1.4.1]: https://github.com/eX-Mech/pymech/compare/1.4.0...1.4.1
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def tests(session):
)


@session(name="tests-cov-vtk", python=["3.9", "3.10"])
@session(name="tests-cov-vtk", python=["3.9", "3.10", "3.11", "3.12"])
def tests_cov_vtk(session):
"""Execute unit-tests using pytest+pytest-cov+VTK dependencies"""
session.install(".[tests,vtk]")
Expand Down
Loading
Loading