Skip to content

Commit

Permalink
Merge pull request #117 from Deltares/fix/DEI-231-change-numpy-random…
Browse files Browse the repository at this point in the history
…-number-generator

replace numpy.random.rand by numpy.random.default_rng
  • Loading branch information
mKlapwijk authored Jul 17, 2024
2 parents 540d8fd + 98484dd commit 3e0970d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/create_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

# Create coordinates
mesh2d_nFaces = 3
mesh2d_node_x = np.random.rand(mesh2d_nFaces)
mesh2d_node_y = np.random.rand(mesh2d_nFaces)
mesh2d_edge_x = np.random.rand(mesh2d_nFaces)
mesh2d_edge_y = np.random.rand(mesh2d_nFaces)
mesh2d_face_x = np.random.rand(mesh2d_nFaces)
mesh2d_face_y = np.random.rand(mesh2d_nFaces)
mesh2d_node_x = np.random.default_rng(mesh2d_nFaces)
mesh2d_node_y = np.random.default_rng(mesh2d_nFaces)
mesh2d_edge_x = np.random.default_rng(mesh2d_nFaces)
mesh2d_edge_y = np.random.default_rng(mesh2d_nFaces)
mesh2d_face_x = np.random.default_rng(mesh2d_nFaces)
mesh2d_face_y = np.random.default_rng(mesh2d_nFaces)
mesh2d_nLayers = 3
timesteps = 10

Expand Down

0 comments on commit 3e0970d

Please sign in to comment.