From 1b5c490d7e35c7ab85aa7570315c192fcb4a264e Mon Sep 17 00:00:00 2001 From: "Timothy A. Smith" <tasmith4@illinois.edu> Date: Tue, 28 May 2019 00:05:15 -0500 Subject: [PATCH] remove some duplicate code in random_array generation --- setup_fixtures.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup_fixtures.py b/setup_fixtures.py index 042cbfa..b3800c5 100644 --- a/setup_fixtures.py +++ b/setup_fixtures.py @@ -44,8 +44,7 @@ def random_array(*shape): def random_array_on_device(queue, *shape): - ary = np.random.random_sample(shape).astype(np.float32).copy(order="F") - return cl.array.to_device(queue, ary) + return cl.array.to_device(queue, random_array(*shape)) def random_flux_derivative_arrays(params): -- GitLab