Skip to content
Snippets Groups Projects
Commit 0c789452 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix old NumPy usage

parent ad7168aa
No related merge requests found
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -52,7 +52,7 @@ class FieldModuleTest(unittest.TestCase):
def test_gather(self):
blocks = createUniformBlockGrid(blocks=(10, 4, 3), cellsPerBlock=(2, 2, 2),
periodic=(True, True, True), oneBlockPerProcess=False)
wlb.field.addToStorage(blocks, "test", dtype=np.int, fSize=3)
wlb.field.addToStorage(blocks, "test", dtype=np.int32, fSize=3)
for block in blocks:
offset_in_global_domain = blocks.transformLocalToGlobal(block, wlb.Cell(0, 0, 0))[:]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment