File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -56,5 +56,19 @@ def test_compute_at_computation_time():
56
56
end_time = time .perf_counter ()
57
57
computation_time_topo = end_time - start_time
58
58
59
- print (f"Computation time without topography: { computation_time_model :.2f} seconds" )
60
- print (f"Computation time with topography: { computation_time_topo :.2f} seconds" )
59
+ # numpy array with random coordinates within the extent of the model
60
+ custom_coordinates = np .random .uniform (
61
+ low = geo_model .grid .extent [:3 ],
62
+ high = geo_model .grid .extent [3 :],
63
+ size = (1000 , 3 )
64
+ )
65
+
66
+ start_time = time .perf_counter ()
67
+ gp .compute_model_at (geo_model , custom_coordinates )
68
+ end_time = time .perf_counter ()
69
+ computation_time_at = end_time - start_time
70
+
71
+ print (f"Computation only model dense grid 125*50*50: { computation_time_model :.2f} seconds" )
72
+ print (f"Computation time with topography 125*50: { computation_time_topo :.2f} seconds" )
73
+ print (f"Computation compute_at with 1000 custom points: { computation_time_at :.2f} seconds" )
74
+
You can’t perform that action at this time.
0 commit comments