mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-17 18:35:10 +02:00
added template for making views (#377)
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user