@@ -46,9 +46,9 @@ def write(filename, config):
4646 E .axis_labels = ["x" , "y" ]
4747 for dim in ["x" , "y" ]:
4848 component = E [dim ]
49- component .reset_dataset (opmd .Dataset (np . dtype ( "float" ) , [10 , 10 ]))
49+ component .reset_dataset (opmd .Dataset ("float" , [10 , 10 ]))
5050 component [:, :] = np .reshape (
51- np .arange (i * 100 , (i + 1 ) * 100 , dtype = np . dtype ( "float" ) ),
51+ np .arange (i * 100 , (i + 1 ) * 100 , dtype = "float" ),
5252 [10 , 10 ],
5353 )
5454
@@ -57,13 +57,13 @@ def write(filename, config):
5757 for dim in ["x" , "y" ]:
5858 # Do not bother with a positionOffset
5959 position_offset = e ["positionOffset" ][dim ]
60- position_offset .reset_dataset (opmd .Dataset (np . dtype ( "int" ) , [100 ]))
60+ position_offset .reset_dataset (opmd .Dataset ("int" , [100 ]))
6161 position_offset .make_constant (0 )
6262
6363 position = e ["position" ][dim ]
64- position .reset_dataset (opmd .Dataset (np . dtype ( "float" ) , [100 ]))
64+ position .reset_dataset (opmd .Dataset ("float" , [100 ]))
6565 position [:] = np .arange (
66- i * 100 , (i + 1 ) * 100 , dtype = np . dtype ( "float" )
66+ i * 100 , (i + 1 ) * 100 , dtype = "float"
6767 )
6868
6969
0 commit comments