File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments