-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* define type alias for Array * remove TypeAlias (not supported in python 3.9) * use Union * remove Array type alias from test coverage * test on 3.12 * update tox * add numpy matrix * change matrix * change matrix * loosen numpy dep. * add setuptools for tests * change GHA * change matrix * change matrix * change matrix * change matrix * change matrix * change matrix * change matrix * change GHA and narrow down python version * change GHA * squeeze index array * correct ) * change event mult * change call to size * change numpy dep + testing * disable xp test * remove torch tests (not compatible with numpy 2.0) * ignore torch enabled lines for test coverage * configure 2 test envs
- Loading branch information
Showing
16 changed files
with
76 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,12 @@ authors = [ | |
{name = "Georg Schramm", email = "[email protected]"}, | ||
] | ||
dependencies = [ | ||
"numpy~=1.23", | ||
"numpy>=1.23", | ||
"scipy~=1.0", | ||
"array-api-compat~=1.7", | ||
"array-api-strict~=1.0", | ||
"matplotlib~=3.8", | ||
] | ||
requires-python = ">=3.9" | ||
requires-python = ">=3.9,<3.13" | ||
readme = "README.md" | ||
license = {text = "MIT"} | ||
classifiers = [ | ||
|
@@ -31,13 +30,20 @@ build-backend = "pdm.backend" | |
distribution = true | ||
|
||
[tool.pdm.dev-dependencies] | ||
test = [ | ||
test-numpy-1 = [ | ||
"pytest>=8.1.1", | ||
"pytest-cov>=4.1.0", | ||
"torch~=2.0", | ||
"array-api-strict~=1.0", | ||
"numpy<2", | ||
"torch~=2.0" | ||
] | ||
numpy122 = [ | ||
test-numpy-2 = [ | ||
"pytest>=8.1.1", | ||
"pytest-cov>=4.1.0", | ||
"array-api-strict~=1.0", | ||
"numpy>=2" | ||
] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"def __repr__", | ||
|
@@ -61,6 +67,9 @@ exclude_lines = [ | |
"if cupy_enabled", | ||
"lib_parallelproj_c_fname", | ||
"empty_cuda_cache", | ||
"__str__" | ||
"__str__", | ||
"Array =", | ||
"elif not cupy_enabled and torch_enabled", | ||
"elif cupy_enabled and not torch_enabled" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters