Avatar for the GenericMappingTools user
GenericMappingTools
pygmt
BlogDocsChangelog

Correctly reserve the grid data dtype by converting ctypes array to numpy array with np.ctypeslib.as_array

#3446Merged
Comparing
ctypesarray
(
09ac0a0
) with
main
(
2454aa6
)
CodSpeed Performance Gauge
+83%
Improvement
2
Untouched
99

Benchmarks

101 total
test_sphinterpolate_no_outgrid
pygmt/tests/test_sphinterpolate.py
CodSpeed Performance Gauge
+83%
71.2 ms39 ms
test_sph2grd_no_outgrid
pygmt/tests/test_sph2grd.py
CodSpeed Performance Gauge
+12%
323.6 ms289.1 ms
test_binstats_no_outgrid
pygmt/tests/test_binstats.py
CodSpeed Performance Gauge
+8%
22.6 ms21 ms
test_grdlandmask_no_outgrid
pygmt/tests/test_grdlandmask.py
CodSpeed Performance Gauge
-7%
70.8 ms75.8 ms
test_grdsample_dataarray_out
pygmt/tests/test_grdsample.py
CodSpeed Performance Gauge
+3%
10.6 ms10.3 ms
test_load_remote_dataset_benchmark_with_region
pygmt/tests/test_datasets_load_remote_datasets.py
CodSpeed Performance Gauge
+2%
52.7 ms51.4 ms
test_earth_relief_holes
pygmt/tests/test_datasets_samples.py
CodSpeed Performance Gauge
+1%
39.4 ms38.9 ms
test_grdfill_dataarray_out
pygmt/tests/test_grdfill.py
CodSpeed Performance Gauge
+1%
9.8 ms9.7 ms
test_surface_input_xyz
pygmt/tests/test_surface.py
CodSpeed Performance Gauge
+1%
10.5 ms10.4 ms
test_histogram[list]
pygmt/tests/test_histogram.py
CodSpeed Performance Gauge
-1%
14.6 ms14.6 ms
test_nearneighbor_input_xyz
pygmt/tests/test_nearneighbor.py
CodSpeed Performance Gauge
+1%
1.4 s1.4 s
test_histogram[Series]
pygmt/tests/test_histogram.py
CodSpeed Performance Gauge
0%
14.6 ms14.6 ms
test_virtualfile_in_required_z_matrix[array-matrix]
pygmt/tests/test_clib_virtualfiles.py
CodSpeed Performance Gauge
0%
9 ms9 ms
test_info_pandas_dataframe_date_column[datetime64[ns]]
pygmt/tests/test_info.py
CodSpeed Performance Gauge
0%
9.5 ms9.5 ms
test_accessor_set_geographic_cartesian_roundtrip
pygmt/tests/test_accessor.py
CodSpeed Performance Gauge
0%
308.7 µs309.8 µs
test_virtualfile_in_required_z_matrix[Dataset-vector]
pygmt/tests/test_clib_virtualfiles.py
CodSpeed Performance Gauge
0%
11.8 ms11.8 ms
test_load_libgmt
pygmt/tests/test_clib_loading.py
CodSpeed Performance Gauge
0%
516.4 µs518.1 µs
test_grdproject_no_outgrid[+proj=merc +ellps=WGS84 +units=m +width=10]
pygmt/tests/test_grdproject.py
CodSpeed Performance Gauge
0%
11.9 ms11.9 ms
test_call_module
pygmt/tests/test_clib.py
CodSpeed Performance Gauge
0%
8.3 ms8.4 ms
test_virtualfile_in_required_z_matrix[DataFrame-vector]
pygmt/tests/test_clib_virtualfiles.py
CodSpeed Performance Gauge
0%
9.3 ms9.4 ms
test_dimfilter_no_outgrid
pygmt/tests/test_dimfilter.py
CodSpeed Performance Gauge
0%
10 ms9.9 ms
test_compute_bins_no_outfile
pygmt/tests/test_grdhisteq.py
CodSpeed Performance Gauge
0%
9.6 ms9.6 ms
test_rose_plot_data_using_cpt
pygmt/tests/test_rose.py
CodSpeed Performance Gauge
0%
17 ms17 ms
test_plot3d_vectors
pygmt/tests/test_plot3d.py
CodSpeed Performance Gauge
0%
15.6 ms15.7 ms
test_subplot_basic_frame
pygmt/tests/test_subplot.py
CodSpeed Performance Gauge
0%
54.2 ms54.1 ms

Commits

Click on a commit to change the comparison range
Base
main
2454aa6
+83.87%
Fix the incorrect value due to floating number conversion in sphinterpolate
15b8d53
2 years ago
by seisman
-1.26%
Merge branch 'main' into ctypesarray
09ac0a0
2 years ago
by seisman
© 2026 CodSpeed Technology
Home Terms Privacy Docs