GenericMappingTools
pygmt
BlogDocsChangelog

Figure.meca: Add the private _FocalMechanismConvention class to simplify codes

#3551Merged
Comparing
refactor/meca-convention
(
2f0f7fd
) with
main
(
699d64b
)
CodSpeed Performance Gauge
0%
Untouched
104

Benchmarks

Passed

test_binstats_no_outgrid
pygmt/tests/test_binstats.py
CodSpeed Performance Gauge
+2%
21.4 ms21 ms
test_histogram[Series]
pygmt/tests/test_histogram.py
CodSpeed Performance Gauge
+1%
15.1 ms15 ms
test_plot3d_vectors
pygmt/tests/test_plot3d.py
CodSpeed Performance Gauge
+1%
16.2 ms16.1 ms
test_info_pandas_dataframe_date_column[datetime64[ns]]
pygmt/tests/test_info.py
CodSpeed Performance Gauge
0%
9.9 ms9.8 ms
test_rose_plot_data_using_cpt
pygmt/tests/test_rose.py
CodSpeed Performance Gauge
0%
17.4 ms17.3 ms
test_virtualfile_from_vectors_one_string_or_object_column[object]
pygmt/tests/test_clib_virtualfile_from_vectors.py
CodSpeed Performance Gauge
0%
8.8 ms8.8 ms
test_grd2cpt
pygmt/tests/test_grd2cpt.py
CodSpeed Performance Gauge
0%
37.8 ms37.7 ms
test_sph2grd_no_outgrid
pygmt/tests/test_sph2grd.py
CodSpeed Performance Gauge
0%
292.3 ms291.5 ms
test_call_module
pygmt/tests/test_clib_call_module.py
CodSpeed Performance Gauge
0%
8.6 ms8.6 ms
test_dataarray_to_matrix_works
pygmt/tests/test_clib_dataarray_to_matrix.py
CodSpeed Performance Gauge
0%
2.2 ms2.2 ms
test_virtualfile_from_vectors_one_string_or_object_column[str]
pygmt/tests/test_clib_virtualfile_from_vectors.py
CodSpeed Performance Gauge
0%
8.8 ms8.8 ms
test_colorbar
pygmt/tests/test_colorbar.py
CodSpeed Performance Gauge
0%
14.9 ms14.8 ms
test_accessor_set_gtype
pygmt/tests/test_accessor.py
CodSpeed Performance Gauge
0%
322.5 µs321.9 µs
test_meca_spec_multiple_focalmecha[dict_mecha_mixed]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
0%
28.8 ms28.7 ms
test_virtualfile_in_required_z_matrix[array-matrix]
pygmt/tests/test_clib_virtualfile_in.py
CodSpeed Performance Gauge
0%
9.2 ms9.2 ms
test_text_multiple_lines_of_text[numpy]
pygmt/tests/test_text.py
CodSpeed Performance Gauge
0%
14.7 ms14.7 ms
test_info_pandas_dataframe_date_column[date32[day][pyarrow]]
pygmt/tests/test_info.py
CodSpeed Performance Gauge
0%
10 ms10 ms
test_meca_spec_multiple_focalmecha[array2d]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
0%
27.6 ms27.5 ms
test_inset_aliases
pygmt/tests/test_inset.py
CodSpeed Performance Gauge
0%
565.9 ms565.3 ms
test_wiggle_data_incols
pygmt/tests/test_wiggle.py
CodSpeed Performance Gauge
0%
15 ms15 ms
test_put_matrix_grid
pygmt/tests/test_clib_put_matrix.py
CodSpeed Performance Gauge
0%
69.5 ms69.5 ms
test_config_format_date_map
pygmt/tests/test_config.py
CodSpeed Performance Gauge
0%
38 ms38 ms
test_plot_vectors
pygmt/tests/test_plot.py
CodSpeed Performance Gauge
0%
15.6 ms15.6 ms
test_virtualfile_in_required_z_matrix[DataFrame-vector]
pygmt/tests/test_clib_virtualfile_in.py
CodSpeed Performance Gauge
0%
9.8 ms9.7 ms
test_meca_spec_multiple_focalmecha[dataframe]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
0%
28.3 ms28.2 ms
test_basemap
pygmt/tests/test_basemap.py
CodSpeed Performance Gauge
0%
14.4 ms14.4 ms
test_grdimage_grid_and_shading_with_xarray[png]
pygmt/tests/test_grdimage.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_timestamp_font
pygmt/tests/test_timestamp.py
CodSpeed Performance Gauge
0%
14.5 ms14.5 ms
test_grd2xyz
pygmt/tests/test_grd2xyz.py
CodSpeed Performance Gauge
0%
61.2 ms61.1 ms
test_meca_spec_multiple_focalmecha[dict_mecha]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
0%
28.7 ms28.7 ms
test_virtualfile_from_matrix
pygmt/tests/test_clib_virtualfile_from_matrix.py
CodSpeed Performance Gauge
0%
78.4 ms78.3 ms
test_grdcontour_labels
pygmt/tests/test_grdcontour.py
CodSpeed Performance Gauge
0%
18.1 ms18.1 ms
test_blockmean_input_xyz
pygmt/tests/test_blockm.py
CodSpeed Performance Gauge
0%
84 ms83.9 ms
test_io_load_dataarray
pygmt/tests/test_io.py
CodSpeed Performance Gauge
0%
23.9 ms23.9 ms
test_logo
pygmt/tests/test_logo.py
CodSpeed Performance Gauge
0%
175.8 ms175.7 ms
test_velo_pandas_dataframe
pygmt/tests/test_velo.py
CodSpeed Performance Gauge
0%
19.4 ms19.4 ms
test_sphinterpolate_no_outgrid
pygmt/tests/test_sphinterpolate.py
CodSpeed Performance Gauge
0%
37.2 ms37.2 ms
test_surface_input_xyz
pygmt/tests/test_surface.py
CodSpeed Performance Gauge
0%
10.9 ms10.9 ms
test_put_matrix
pygmt/tests/test_clib_put_matrix.py
CodSpeed Performance Gauge
0%
26.3 ms26.3 ms
test_grdtrack_input_dataframe_and_dataarray
pygmt/tests/test_grdtrack.py
CodSpeed Performance Gauge
0%
60.8 ms60.7 ms
test_sphdistance_no_outgrid
pygmt/tests/test_sphdistance.py
CodSpeed Performance Gauge
0%
132.1 ms132 ms
test_text_multiple_lines_of_text[pyarrow]
pygmt/tests/test_text.py
CodSpeed Performance Gauge
0%
14.8 ms14.8 ms
test_regular_grid_no_outgrid
pygmt/tests/test_triangulate.py
CodSpeed Performance Gauge
0%
62 ms62 ms
test_open_virtualfile
pygmt/tests/test_clib_virtualfiles.py
CodSpeed Performance Gauge
0%
78.2 ms78.2 ms
test_contour_matrix[array]
pygmt/tests/test_contour.py
CodSpeed Performance Gauge
0%
68.5 ms68.5 ms
test_blockmode_input_dataframe
pygmt/tests/test_blockm.py
CodSpeed Performance Gauge
0%
127.3 ms127.3 ms
test_grdview_drapegrid_dataarray
pygmt/tests/test_grdview.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_psconvert
pygmt/tests/test_psconvert.py
CodSpeed Performance Gauge
0%
23.8 ms23.8 ms
test_nearneighbor_input_xyz
pygmt/tests/test_nearneighbor.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_delaunay_triples_input_xyz
pygmt/tests/test_triangulate.py
CodSpeed Performance Gauge
0%
94 ms94 ms
test_grdclip_no_outgrid
pygmt/tests/test_grdclip.py
CodSpeed Performance Gauge
0%
10.2 ms10.2 ms
test_project_input_matrix[DataFrame]
pygmt/tests/test_project.py
CodSpeed Performance Gauge
0%
111.4 ms111.4 ms
test_grdgradient_no_outgrid
pygmt/tests/test_grdgradient.py
CodSpeed Performance Gauge
0%
10.3 ms10.3 ms
test_project_input_matrix[array]
pygmt/tests/test_project.py
CodSpeed Performance Gauge
0%
111 ms111 ms
test_which_multiple
pygmt/tests/test_which.py
CodSpeed Performance Gauge
0%
29.9 ms29.9 ms
test_makecpt_output_cpt_file
pygmt/tests/test_makecpt.py
CodSpeed Performance Gauge
0%
10.7 ms10.7 ms
test_legend_entries
pygmt/tests/test_legend.py
CodSpeed Performance Gauge
0%
124.9 ms124.9 ms
test_grdinfo
pygmt/tests/test_grdinfo.py
CodSpeed Performance Gauge
0%
6.8 ms6.8 ms
test_dataset
pygmt/tests/test_datatypes_dataset.py
CodSpeed Performance Gauge
0%
82.8 ms82.8 ms
test_x2sys_cross_input_dataframe_output_dataframe[y]
pygmt/tests/test_x2sys_cross.py
CodSpeed Performance Gauge
0%
242.4 ms242.4 ms
test_contour_matrix[Dataset]
pygmt/tests/test_contour.py
CodSpeed Performance Gauge
0%
71.4 ms71.4 ms
test_select_input_dataframe
pygmt/tests/test_select.py
CodSpeed Performance Gauge
0%
83.3 ms83.3 ms
test_project_input_matrix[Dataset]
pygmt/tests/test_project.py
CodSpeed Performance Gauge
0%
113.1 ms113.1 ms
test_x2sys_cross_input_dataframe_output_dataframe[s]
pygmt/tests/test_x2sys_cross.py
CodSpeed Performance Gauge
0%
242.5 ms242.5 ms
test_virtualfile_in_required_z_matrix[Dataset-vector]
pygmt/tests/test_clib_virtualfile_in.py
CodSpeed Performance Gauge
0%
12.1 ms12.1 ms
test_histogram[list]
pygmt/tests/test_histogram.py
CodSpeed Performance Gauge
0%
15 ms15 ms
test_info_xarray_dataset_time_column
pygmt/tests/test_info.py
CodSpeed Performance Gauge
0%
10 ms10 ms
test_virtualfile_from_vectors
pygmt/tests/test_clib_virtualfile_from_vectors.py
CodSpeed Performance Gauge
0%
80.7 ms80.8 ms
test_put_strings
pygmt/tests/test_clib_put_strings.py
CodSpeed Performance Gauge
0%
3.4 ms3.4 ms
test_grdvolume
pygmt/tests/test_grdvolume.py
CodSpeed Performance Gauge
0%
77.2 ms77.2 ms
test_dimfilter_no_outgrid
pygmt/tests/test_dimfilter.py
CodSpeed Performance Gauge
0%
10.3 ms10.3 ms
test_filter1d
pygmt/tests/test_filter1d.py
CodSpeed Performance Gauge
0%
44 ms44 ms
test_x2sys_cross_input_dataframe_output_dataframe[o]
pygmt/tests/test_x2sys_cross.py
CodSpeed Performance Gauge
0%
242.4 ms242.4 ms
test_xyz2grd_input_array[Dataset]
pygmt/tests/test_xyz2grd.py
CodSpeed Performance Gauge
0%
31.8 ms31.8 ms
test_contour_matrix[DataFrame]
pygmt/tests/test_contour.py
CodSpeed Performance Gauge
0%
69.1 ms69.1 ms
test_subplot_basic_frame
pygmt/tests/test_subplot.py
CodSpeed Performance Gauge
0%
55.7 ms55.7 ms
test_blockmedian_input_table_matrix
pygmt/tests/test_blockmedian.py
CodSpeed Performance Gauge
0%
125 ms125.1 ms
test_grdproject_no_outgrid[M10c]
pygmt/tests/test_grdproject.py
CodSpeed Performance Gauge
0%
10.3 ms10.3 ms
test_put_vector_string_dtype
pygmt/tests/test_clib_put_vector.py
CodSpeed Performance Gauge
0%
24.8 ms24.8 ms
test_begin_end
pygmt/tests/test_session_management.py
CodSpeed Performance Gauge
0%
32.4 ms32.4 ms
test_compute_bins_no_outfile
pygmt/tests/test_grdhisteq.py
CodSpeed Performance Gauge
0%
9.8 ms9.8 ms
test_grdproject_no_outgrid[EPSG:3395 +width=10]
pygmt/tests/test_grdproject.py
CodSpeed Performance Gauge
0%
10.9 ms10.9 ms
test_virtualfile_from_vectors_one_string_or_object_column[pyarrow]
pygmt/tests/test_clib_virtualfile_from_vectors.py
CodSpeed Performance Gauge
0%
8.9 ms8.9 ms
test_put_vector
pygmt/tests/test_clib_put_vector.py
CodSpeed Performance Gauge
0%
30.3 ms30.3 ms
test_text_multiple_lines_of_text[list]
pygmt/tests/test_text.py
CodSpeed Performance Gauge
0%
14.7 ms14.7 ms
test_grdfill_dataarray_out
pygmt/tests/test_grdfill.py
CodSpeed Performance Gauge
0%
10.1 ms10.1 ms
test_earth_relief_holes
pygmt/tests/test_datasets_samples.py
CodSpeed Performance Gauge
0%
39.1 ms39.1 ms
test_grdproject_no_outgrid[+proj=merc +ellps=WGS84 +units=m +width=10]
pygmt/tests/test_grdproject.py
CodSpeed Performance Gauge
0%
12.3 ms12.3 ms
test_grdfilter_dataarray_in_dataarray_out
pygmt/tests/test_grdfilter.py
CodSpeed Performance Gauge
0%
10.3 ms10.3 ms
test_xyz2grd_input_array[array]
pygmt/tests/test_xyz2grd.py
CodSpeed Performance Gauge
0%
32.7 ms32.7 ms
test_solar_set_terminator_datetime[terminator_datetime_string]
pygmt/tests/test_solar.py
CodSpeed Performance Gauge
0%
24 ms24.1 ms
test_figure_repr
pygmt/tests/test_figure.py
CodSpeed Performance Gauge
0%
33 ms33.1 ms
test_geopandas_info_geodataframe
pygmt/tests/test_geopandas.py
CodSpeed Performance Gauge
0%
13.1 ms13.1 ms
test_grdcut_dataarray_in_dataarray_out
pygmt/tests/test_grdcut.py
CodSpeed Performance Gauge
0%
15.3 ms15.3 ms
test_info_pandas_dataframe_date_column[date64[ms][pyarrow]]
pygmt/tests/test_info.py
CodSpeed Performance Gauge
0%
10 ms10 ms
test_solar_set_terminator_datetime[terminator_datetime1]
pygmt/tests/test_solar.py
CodSpeed Performance Gauge
0%
23.2 ms23.2 ms
test_coast_region
pygmt/tests/test_coast.py
CodSpeed Performance Gauge
0%
476.4 ms477.3 ms
test_x2sys_init_units_gap
pygmt/tests/test_x2sys_init.py
CodSpeed Performance Gauge
0%
8.7 ms8.7 ms
test_equalize_grid_no_outgrid
pygmt/tests/test_grdhisteq.py
CodSpeed Performance Gauge
0%
10.2 ms10.2 ms
test_load_libgmt
pygmt/tests/test_clib_loading.py
CodSpeed Performance Gauge
0%
515.4 µs516.7 µs
test_load_remote_dataset_benchmark_with_region
pygmt/tests/test_datasets_load_remote_datasets.py
CodSpeed Performance Gauge
0%
51.9 ms52 ms
test_ternary_3_labels
pygmt/tests/test_ternary.py
CodSpeed Performance Gauge
0%
25.5 ms25.6 ms
test_grdsample_dataarray_out
pygmt/tests/test_grdsample.py
CodSpeed Performance Gauge
-6%
11 ms11.7 ms
test_grdlandmask_no_outgrid
pygmt/tests/test_grdlandmask.py
CodSpeed Performance Gauge
-7%
73.1 ms79 ms

Commits

Click on a commit to change the comparison range
Base
main
699d64b
+0.05%
Add private _FocalMechanismConvention class and refactor Figure.meca
cc554e9
1 year ago
by seisman
-0.03%
Merge branch 'main' into refactor/meca-convention
08ca92e
1 year ago
by seisman
+0.06%
Merge branch 'main' into refactor/meca-convention
cf5840e
11 months ago
by seisman
-14.72%
Rename _ConventionCode to _FocalMechanismConventionCode
06652e6
11 months ago
by seisman
+14.39%
Merge branch 'main' into refactor/meca-convention
3f93b8b
11 months ago
by seisman
+0.18%
Use the TODO comment
495b5c6
11 months ago
by seisman
+0.1%
Fix typos Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com>
ebe7f38
10 months ago
by seisman
-0.24%
Merge branch 'main' into refactor/meca-convention
97e70a7
10 months ago
by seisman
-0.03%
Merge branch 'main' into refactor/meca-convention
44ba2a6
10 months ago
by seisman
+0.33%
Merge branch 'main' into refactor/meca-convention
27e302f
9 months ago
by seisman
-0.1%
Merge branch 'main' into refactor/meca-convention
d4f14f1
9 months ago
by seisman
-0.03%
Merge branch 'main' into refactor/meca-convention
2d08324
9 months ago
by seisman
-0.03%
Merge branch 'main' into refactor/meca-convention
3656cc2
9 months ago
by seisman
-0.01%
Merge branch 'main' into refactor/meca-convention
2f0f7fd
9 months ago
by seisman
© 2025 CodSpeed Technology
Home Terms Privacy Docs