Skip to content

Commit 7383a02

Browse files
committed
Fix last serial test
1 parent 18267f7 commit 7383a02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nbodykit/base/tests/test_catalog.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ def test_save_future(comm):
3434
data = numpy.ones(100, dtype=[
3535
('Position', ('f4', 3)),
3636
('Velocity', ('f4', 3)),
37-
('Mass', ('f4'))]
37+
('Mass', ('f4', 1))]
3838
)
3939

40-
data['Mass'] = numpy.arange(len(data))
40+
data['Mass'] = numpy.arange(len(data)).reshape(data['Mass'].shape)
4141
data['Position'] = numpy.arange(len(data) * 3).reshape(data['Position'].shape)
4242
data['Velocity'] = numpy.arange(len(data) * 3).reshape(data['Velocity'].shape)
4343

@@ -90,10 +90,10 @@ def test_save_dataset(comm):
9090
data = numpy.ones(100, dtype=[
9191
('Position', ('f4', 3)),
9292
('Velocity', ('f4', 3)),
93-
('Mass', ('f4'))]
93+
('Mass', ('f4', 1))]
9494
)
9595

96-
data['Mass'] = numpy.arange(len(data))
96+
data['Mass'] = numpy.arange(len(data)).reshape(data['Mass'].shape)
9797
data['Position'] = numpy.arange(len(data) * 3).reshape(data['Position'].shape)
9898
data['Velocity'] = numpy.arange(len(data) * 3).reshape(data['Velocity'].shape)
9999

0 commit comments

Comments
 (0)