Skip to content

Commit

Permalink
Print: __array_interface__ in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Mar 25, 2022
1 parent 59bfb65 commit a56a873
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_array4.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def test_array4_empty():
def test_array4():
# from numpy (also a non-owning view)
x = np.ones((2, 3, 4,))
print(x.__array_interface__)
arr = amrex.Array4_double(x)
print(arr.__array_interface__)
assert(arr.nComp == 1)

x[1, 1, 1] = 42
Expand Down

0 comments on commit a56a873

Please sign in to comment.