added template for making views (#377)
Build on RHEL9 / build (push) Successful in 3m4s
Build on RHEL8 / build (push) Successful in 3m32s
Run tests using data on local RHEL8 / build (push) Successful in 4m25s
Build on local RHEL8 / build (push) Successful in 3m8s

Cleaned up the helper functions by: 
- Added template for make_view (and new make_const_view) instead of the
copy paste implementation
- checks c_style and dimensions inside make_view
- test binding to be able to probe the checks in make_view

Call sites can be reviewed in a second PR since usage of const or
strictness of conversion depends...
This commit is contained in:
Erik Fröjdh
2026-09-22 09:25:42 +02:00
committed by GitHub
parent cbc4864e93
commit 752ec38596
6 changed files with 189 additions and 22 deletions
+1 -1
View File
@@ -157,5 +157,5 @@ def test_masking_requires_one_dimension():
mask = np.array([[True, False]], dtype=bool)
with pytest.raises(ValueError, match="one-dimensional"):
with pytest.raises(ValueError):
cv(mask)