Skip to content

Instantly share code, notes, and snippets.

@lispandfound
Created January 7, 2026 00:35
Show Gist options
  • Select an option

  • Save lispandfound/4b4570e96e1cf96824745c797e5acece to your computer and use it in GitHub Desktop.

Select an option

Save lispandfound/4b4570e96e1cf96824745c797e5acece to your computer and use it in GitHub Desktop.
Find references to removed qcore functions
#!/bin/bash
FUNCTIONS=("_check_data_empty" "_check_data_exists" "_validate_pad" "_validate_sos" "a_to_mw_berrymanetal" "a_to_mw_hanksbakun" "a_to_mw_leonard" "a_to_mw_skarlatoudis" "a_to_mw_strasser_2010_interface" "a_to_mw_villamoretal" "acc2vel" "add_buffer_handler" "add_general_file_handler" "allen_bounds" "argsearch" "build_corners" "check_type" "clean_up_logger" "closest_points_between_line_segments" "closest_points_between_plane_sequences" "closest_points_between_planes" "compute_intermediate_latitudes" "create_constant_vm_file" "create_stdout_handler" "duplicate_handlers" "get_IM_csv" "get_IM_info" "get_VM_dir" "get_area" "get_basic_logger" "get_bb_acc_dir" "get_bb_bin_path" "get_bb_dir" "get_bounds" "get_cybershake_list" "get_database_path" "get_empirical_dir" "get_fault_VM_dir" "get_fault_qp_file" "get_fault_qs_file" "get_genslip_bin" "get_hf_acc_dir" "get_hf_bin_path" "get_hf_binmod" "get_hf_dir" "get_hf_np2mm" "get_hypo" "get_im_plot_dir" "get_length" "get_lf_bin" "get_lf_dir" "get_lf_outbin_dir" "get_lf_restart_dir" "get_logger" "get_lonlat" "get_mgmt_db" "get_mgmt_db_queue" "get_nseg" "get_nsub_stoch" "get_observed_stations" "get_opensees_bin" "get_perimeter" "get_realisation_VM_dir" "get_realisation_VM_pert_config_file" "get_realisation_VM_pert_file" "get_realisation_logger" "get_realisation_verification_dir" "get_root_yaml_path" "get_rrup_location" "get_rrup_path" "get_runs_dir" "get_sim_params_yaml_path" "get_source_params_dir" "get_source_params_location" "get_source_params_path" "get_sources_dir" "get_sources_plot_dir" "get_stoch_dir" "get_task_logger" "get_unversioned_bin" "get_verification_dir" "get_vm_params_path" "get_vm_params_yaml" "get_width" "gp2ll" "gp2ll_multi" "homogenise_point" "in_finite_plane" "is_ff" "ll2gp" "ll2gp_multi" "load_e3d_par" "load_im_file" "lw_to_mw_scaling_relation" "lw_to_mw_sigma_scaling_relation" "lw_to_mw_stirling" "mag2mom" "main" "mom2mag" "mom2mag_nm" "mom_to_a_murotani_2013" "mw_sigma_hanksbakun" "mw_sigma_leonard" "mw_sigma_skarlatoudis" "mw_sigma_stirling" "mw_sigma_villamor" "mw_to_a_allen_2017_bilinear_interface" "mw_to_a_allen_2017_linear_interface" "mw_to_a_allen_2017_slab" "mw_to_a_berrymanetal" "mw_to_a_blaser_2010" "mw_to_a_hanksbakun" "mw_to_a_leonard" "mw_to_a_skarlatoudis" "mw_to_a_strasser_2010_interface" "mw_to_a_strasser_2010_slab" "mw_to_a_thingbaijam_2017" "mw_to_a_villamoretal" "mw_to_l_allen_2017_bilinear_interface" "mw_to_l_allen_2017_linear_interface" "mw_to_l_allen_2017_slab" "mw_to_l_leonard" "mw_to_l_strasser_2010_interface" "mw_to_l_strasser_2010_slab" "mw_to_lw_leonard" "mw_to_lw_scaling_relation" "mw_to_w_allen_2017_bilinear_interface" "mw_to_w_allen_2017_linear_interface" "mw_to_w_allen_2017_slab" "mw_to_w_leonard" "mw_to_w_strasser_2010_interface" "mw_to_w_strasser_2010_slab" "order_im_cols_df" "order_im_cols_file" "oriented_bounding_planes" "orthogonal_plane" "plane_from_three_points" "pp_time" "project_point_onto_plane" "projective_span" "ps_params" "read_header" "read_latlondepth" "read_srf_points" "read_stoch_header" "remove_buffer_handler" "round_subfault_size" "set_stdout_level" "set_up" "setup_module" "skip_points" "sosfiltfilt" "spheres_intersect" "srf2corners" "srf2llv" "srf2llv_py" "srf_dt" "srf_dxy" "strasser_interface_bounds" "strasser_slab_bounds" "teardown_module" "test_closest_line_seg" "test_closest_points" "test_dt" "test_dxy" "test_get_bounds" "test_get_nseg" "test_homogenise_point" "test_is_ff" "test_nplane1" "test_orthogonal_plane" "test_plane" "test_plane_from_three_points" "test_projective_span" "test_ps_params" "test_read_latlondepth" "test_read_srf_points" "test_set_up" "test_srf2corners" "test_tear_down" "validate_region" "validate_vm_bounds" "validate_vm_file" "validate_vm_files" "validate_vm_params" "vel2acc3d" "wl_to_mw_leonard")
SEARCH_DIR="."
for func in "${FUNCTIONS[@]}"; do
echo -e "\n\033[1;32m[Symbol: $func]\033[0m"
git grep -nP \
-A 2 -B 1 \
--color=always \
-e "\b${func}\b(?=\s*\()" \
-- "$SEARCH_DIR"/*.py
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment