Skip to content

Allow NumPy 2#20

Merged
yakutovicha merged 1 commit into
mainfrom
codex/numpy2-compat
Jul 15, 2026
Merged

Allow NumPy 2#20
yakutovicha merged 1 commit into
mainfrom
codex/numpy2-compat

Conversation

@cpignedoli

Copy link
Copy Markdown
Member

Summary

  • allow NumPy 2 in the package metadata
  • replace the removed np.complex alias with the builtin complex type

Motivation

This keeps cp2k-spm-tools installable in Python 3.12 environments that already use NumPy 2. The removed np.complex alias is the only obvious NumPy 2 incompatibility found in the package code.

Tests

  • python -c "import cp2k_spm_tools, numpy; print('cp2k_spm_tools ok'); print(numpy.version)"
  • verified in the AiiDAlab instance with NumPy 2.5.0

@cpignedoli
cpignedoli marked this pull request as ready for review July 11, 2026 12:05
@cpignedoli
cpignedoli requested a review from eimrek July 11, 2026 12:05
@yakutovicha
yakutovicha merged commit bb3c86b into main Jul 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants