From 98484dd62789af09c5a1aa2ca87df5418f39abdd Mon Sep 17 00:00:00 2001 From: mKlapwijk Date: Wed, 17 Jul 2024 13:59:51 +0200 Subject: [PATCH] replace numpy.random.rand by numpy.random.default_rng --- scripts/create_nc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/create_nc.py b/scripts/create_nc.py index e022207f..bb247bb5 100644 --- a/scripts/create_nc.py +++ b/scripts/create_nc.py @@ -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