rock-physics-open 0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rock_physics_open-0.0/.github/CODEOWNERS +1 -0
- rock_physics_open-0.0/.github/dependabot.yaml +11 -0
- rock_physics_open-0.0/.github/workflows/lint-and-format.yaml +21 -0
- rock_physics_open-0.0/.github/workflows/on-pull-request.yaml +10 -0
- rock_physics_open-0.0/.github/workflows/on-push-main.yaml +22 -0
- rock_physics_open-0.0/.github/workflows/publish-pypi.yaml +47 -0
- rock_physics_open-0.0/.github/workflows/release-please.yaml +22 -0
- rock_physics_open-0.0/.github/workflows/test.yaml +62 -0
- rock_physics_open-0.0/.gitignore +22 -0
- rock_physics_open-0.0/.pre-commit-config.yaml +24 -0
- rock_physics_open-0.0/.release-please-manifest.json +1 -0
- rock_physics_open-0.0/CHANGELOG.md +24 -0
- rock_physics_open-0.0/CONTRIBUTING.md +100 -0
- rock_physics_open-0.0/LICENSE +165 -0
- rock_physics_open-0.0/PKG-INFO +92 -0
- rock_physics_open-0.0/README.md +58 -0
- rock_physics_open-0.0/SECURITY.md +16 -0
- rock_physics_open-0.0/pyproject.toml +96 -0
- rock_physics_open-0.0/pytest.ini +6 -0
- rock_physics_open-0.0/release-please-config.json +11 -0
- rock_physics_open-0.0/setup.cfg +4 -0
- rock_physics_open-0.0/src/__init__.py +0 -0
- rock_physics_open-0.0/src/rock_physics_open/__init__.py +0 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/__init__.py +0 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/anisotropy.py +162 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/__init__.py +17 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/class_stats.py +58 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/lin_class.py +47 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/mahal_class.py +56 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/norm_class.py +65 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/poly_class.py +40 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/post_prob.py +26 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/two_step_classification.py +46 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/conversions.py +10 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/__init__.py +11 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/dict_to_float.py +33 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/dim_check_vector.py +83 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/filter_input.py +126 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/filter_output.py +78 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/__init__.py +14 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/dummy_vars.py +42 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/exponential_model.py +119 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/import_ml_models.py +61 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/run_regression.py +151 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/sigmoidal_model.py +188 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/snapshot_test_utilities/__init__.py +10 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/snapshot_test_utilities/compare_snapshots.py +145 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/snapshot_test_utilities/snapshots.py +54 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/__init__.py +43 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/backus_ave.py +53 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/dvorkin_nur.py +69 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/gassmann.py +140 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/hashin_shtrikman.py +195 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/hertz_mindlin.py +43 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/moduli_velocity.py +51 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/reflection_eq.py +98 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/rho.py +59 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/voigt_reuss_hill.py +128 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/walton.py +38 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/wood_brie.py +77 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/Equinor_logo.gif +0 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/Equinor_logo.ico +0 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/__init__.py +24 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/display_result_statistics.py +83 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/gassmann_dry_mod.py +37 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/gassmann_mod.py +37 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/gassmann_sub_mod.py +53 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/hs_average.py +40 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/pressure.py +88 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/reflectivity.py +85 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/timeshift.py +91 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/vp_vs_rho_set_statistics.py +154 -0
- rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/vrh_3_min.py +61 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/__init__.py +9 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/brine_model/__init__.py +5 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/brine_model/brine_properties.py +143 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/gas_model/__init__.py +5 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/gas_model/gas_properties.py +277 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/__init__.py +5 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/dead_oil_density.py +60 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/dead_oil_velocity.py +28 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/live_oil_density.py +79 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/live_oil_velocity.py +24 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/oil_bubble_point.py +69 -0
- rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/oil_properties.py +114 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/__init__.py +57 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/cemented_shalysand_sandyshale_models.py +304 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/constant_cement_models.py +204 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/constant_cement_optimisation.py +122 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/contact_cement_model.py +138 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/curvefit_sandstone_models.py +143 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/friable_models.py +178 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/friable_optimisation.py +112 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/friable_shalysand_sandyshale_models.py +235 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/patchy_cement_fluid_substitution_model.py +477 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/patchy_cement_model.py +286 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/patchy_cement_optimisation.py +251 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/unresolved_cemented_sandshale_models.py +134 -0
- rock_physics_open-0.0/src/rock_physics_open/sandstone_models/unresolved_friable_sandshale_models.py +126 -0
- rock_physics_open-0.0/src/rock_physics_open/shale_models/__init__.py +19 -0
- rock_physics_open-0.0/src/rock_physics_open/shale_models/dem.py +174 -0
- rock_physics_open-0.0/src/rock_physics_open/shale_models/dem_dual_por.py +61 -0
- rock_physics_open-0.0/src/rock_physics_open/shale_models/kus_tok.py +59 -0
- rock_physics_open-0.0/src/rock_physics_open/shale_models/multi_sca.py +133 -0
- rock_physics_open-0.0/src/rock_physics_open/shale_models/pq.py +102 -0
- rock_physics_open-0.0/src/rock_physics_open/shale_models/sca.py +90 -0
- rock_physics_open-0.0/src/rock_physics_open/shale_models/shale4_mineral.py +147 -0
- rock_physics_open-0.0/src/rock_physics_open/shale_models/shale4_mineral_dem_overlay.py +92 -0
- rock_physics_open-0.0/src/rock_physics_open/span_wagner/__init__.py +5 -0
- rock_physics_open-0.0/src/rock_physics_open/span_wagner/co2_properties.py +438 -0
- rock_physics_open-0.0/src/rock_physics_open/span_wagner/coefficients.py +165 -0
- rock_physics_open-0.0/src/rock_physics_open/span_wagner/equations.py +104 -0
- rock_physics_open-0.0/src/rock_physics_open/span_wagner/tables/__init__.py +0 -0
- rock_physics_open-0.0/src/rock_physics_open/span_wagner/tables/carbon_dioxide_density.npz +0 -0
- rock_physics_open-0.0/src/rock_physics_open/span_wagner/tables/lookup_table.py +33 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/Equinor_logo.ico +0 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/__init__.py +45 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/carbonate_pressure_substitution.py +124 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/curvefit_t_matrix_exp.py +124 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/curvefit_t_matrix_min.py +86 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/opt_subst_utilities.py +415 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/parse_t_matrix_inputs.py +297 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/run_t_matrix.py +243 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_C.py +210 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_opt_fluid_sub_exp.py +137 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_opt_fluid_sub_petec.py +163 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_opt_forward_model_exp.py +72 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_opt_forward_model_min.py +86 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_parameter_optimisation_exp.py +172 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_parameter_optimisation_min.py +159 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/__init__.py +12 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/array_functions.py +75 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_c_eff.py +163 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_isolated.py +95 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_kd.py +40 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_kd_eff.py +116 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_kd_uuv.py +18 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_pressure.py +140 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_t.py +71 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_td.py +42 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_theta.py +43 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_x.py +33 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_z.py +50 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/check_and_tile.py +43 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/g_tensor.py +140 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/iso_av.py +60 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/iso_ave_all.py +55 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/pressure_input.py +44 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/t_matrix_vec.py +278 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/velocity_vti_angles.py +81 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/tmatrix_python.dll +0 -0
- rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/tmatrix_python.so +0 -0
- rock_physics_open-0.0/src/rock_physics_open/ternary_plots/__init__.py +3 -0
- rock_physics_open-0.0/src/rock_physics_open/ternary_plots/gen_ternary_plot.py +73 -0
- rock_physics_open-0.0/src/rock_physics_open/ternary_plots/shale_prop_ternary.py +337 -0
- rock_physics_open-0.0/src/rock_physics_open/ternary_plots/ternary_patches.py +277 -0
- rock_physics_open-0.0/src/rock_physics_open/ternary_plots/ternary_plot_utilities.py +197 -0
- rock_physics_open-0.0/src/rock_physics_open/ternary_plots/unconventionals_ternary.py +75 -0
- rock_physics_open-0.0/src/rock_physics_open/version.py +21 -0
- rock_physics_open-0.0/src/rock_physics_open.egg-info/PKG-INFO +92 -0
- rock_physics_open-0.0/src/rock_physics_open.egg-info/SOURCES.txt +287 -0
- rock_physics_open-0.0/src/rock_physics_open.egg-info/dependency_links.txt +1 -0
- rock_physics_open-0.0/src/rock_physics_open.egg-info/requires.txt +13 -0
- rock_physics_open-0.0/src/rock_physics_open.egg-info/top_level.txt +1 -0
- rock_physics_open-0.0/tests/__init__.py +0 -0
- rock_physics_open-0.0/tests/classification_functions_tests/__init__.py +0 -0
- rock_physics_open-0.0/tests/classification_functions_tests/test_class_stats.py +47 -0
- rock_physics_open-0.0/tests/classification_functions_tests/test_lin_class.py +43 -0
- rock_physics_open-0.0/tests/classification_functions_tests/test_mahal_class.py +134 -0
- rock_physics_open-0.0/tests/classification_functions_tests/test_norm_class.py +136 -0
- rock_physics_open-0.0/tests/classification_functions_tests/test_poly_class.py +45 -0
- rock_physics_open-0.0/tests/classification_functions_tests/test_two_step_class.py +56 -0
- rock_physics_open-0.0/tests/config.py +28 -0
- rock_physics_open-0.0/tests/conftest.py +20 -0
- rock_physics_open-0.0/tests/data/.gitattributes +1 -0
- rock_physics_open-0.0/tests/data/exp_opt_param.pkl +0 -0
- rock_physics_open-0.0/tests/data/exp_opt_param_test.pkl +0 -0
- rock_physics_open-0.0/tests/data/petec_opt_param.pkl +0 -0
- rock_physics_open-0.0/tests/data/petec_opt_param_test.pkl +0 -0
- rock_physics_open-0.0/tests/data/sandstone_optimisation.csv +50 -0
- rock_physics_open-0.0/tests/data/test_well.csv +435 -0
- rock_physics_open-0.0/tests/data/tmatrix_test_data.csv +232 -0
- rock_physics_open-0.0/tests/fluid_model_tests/__init__.py +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_brine_density.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_brine_properties.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_brine_velocity.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_water_density.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_water_properties.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_water_velocity.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_gas_properties_test_gas_properties.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_oil_properties_test_live_oil_density.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_oil_properties_test_live_oil_velocity.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_oil_properties_test_oil_prop.npz +0 -0
- rock_physics_open-0.0/tests/fluid_model_tests/test_brine_properties.py +102 -0
- rock_physics_open-0.0/tests/fluid_model_tests/test_gas_properties.py +45 -0
- rock_physics_open-0.0/tests/fluid_model_tests/test_oil_properties.py +66 -0
- rock_physics_open-0.0/tests/gen_utilities_tests/__init__.py +0 -0
- rock_physics_open-0.0/tests/gen_utilities_tests/test_dict_to_float.py +15 -0
- rock_physics_open-0.0/tests/gen_utilities_tests/test_dim_check_vector.py +38 -0
- rock_physics_open-0.0/tests/gen_utilities_tests/test_filter_input.py +93 -0
- rock_physics_open-0.0/tests/gen_utilities_tests/test_filter_output.py +25 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/__init__.py +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_constant_cement_model_test_constant_cement_model.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_constant_cement_model_test_constant_cement_model_dry.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_constant_cement_model_test_constant_cement_model_high_phi.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_constant_cement_model_test_constant_cement_model_high_phi_extrapolate.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_contact_cement_model_test_contact_cement_model.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_friable_models_test_friable_model.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_friable_models_test_friable_model_dry.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_patchy_cement_fluid_sub_model_test_patchy_cement_fluid_sub_model_cem_frac.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_patchy_cement_fluid_sub_model_test_patchy_cement_fluid_sub_model_cem_frac_snap.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_patchy_cement_fluid_sub_model_test_patchy_cement_fluid_sub_model_no_change.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_patchy_cement_fluid_sub_model_test_patchy_cement_fluid_sub_model_weight.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_patchy_cement_fluid_sub_model_test_patchy_cement_fluid_sub_model_weight_snap.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_patchy_cement_fluid_sub_model_test_patchy_cement_model_cem_frac.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_patchy_cement_fluid_sub_model_test_patchy_cement_model_exceed_phi_extrapolate.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_patchy_cement_fluid_sub_model_test_patchy_cement_model_weight.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandstone_optimisation_test_constant_cement_optimisation.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandstone_optimisation_test_friable_optimisation.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandstone_optimisation_test_patchy_cement_optimisation.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandy_shale_models_test_cemented_sandy_shale_model.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandy_shale_models_test_friable_sandy_shale_model.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_unresolved_models_test_unresolved_cemented_sand_shale_model.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_unresolved_models_test_unresolved_friable_sand_shale_model.npz +0 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/test_constant_cement_model.py +120 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/test_contact_cement_model.py +49 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/test_friable_models.py +56 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/test_patchy_cement_fluid_sub_model.py +340 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/test_sandstone_optimisation.py +111 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/test_sandy_shale_models.py +111 -0
- rock_physics_open-0.0/tests/sandstone_model_tests/test_unresolved_models.py +112 -0
- rock_physics_open-0.0/tests/shale_model_tests/__init__.py +0 -0
- rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_dem_models_test_dem_4_min_model.npz +0 -0
- rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_dem_models_test_dem_4_min_overlay_model.npz +0 -0
- rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_dem_models_test_dem_dual_por_model.npz +0 -0
- rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_dem_models_test_dem_model.npz +0 -0
- rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_kus_tok_model_test_kus_tok_model.npz +0 -0
- rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_sca_models_test_multi_sca_model.npz +0 -0
- rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_sca_models_test_sca_model.npz +0 -0
- rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_ternary_plots_test_ternary.npz +0 -0
- rock_physics_open-0.0/tests/shale_model_tests/test_dem_models.py +146 -0
- rock_physics_open-0.0/tests/shale_model_tests/test_kus_tok_model.py +30 -0
- rock_physics_open-0.0/tests/shale_model_tests/test_sca_models.py +53 -0
- rock_physics_open-0.0/tests/shale_model_tests/test_ternary_plots.py +43 -0
- rock_physics_open-0.0/tests/span_wagner/__init__.py +0 -0
- rock_physics_open-0.0/tests/span_wagner/snapshots/test_co2_properties_test_co2_properties.npz +0 -0
- rock_physics_open-0.0/tests/span_wagner/test_co2_properties.py +38 -0
- rock_physics_open-0.0/tests/std_functions_tests/__init__.py +0 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_backus_average.py +94 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_dvorkin_nur.py +50 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_gassmann.py +39 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_hashin_shtrikman.py +166 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_hertz_mindlin.py +52 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_moduli_velocity.py +97 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_reflectivity.py +57 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_rho.py +49 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_voigt_reuss_hill.py +138 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_walton.py +90 -0
- rock_physics_open-0.0/tests/std_functions_tests/test_wood_brie.py +83 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/__init__.py +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_run_t_matrix_test_run_t_matrix.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_run_t_matrix_test_run_t_matrix_porosity_vectorised.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_run_t_matrix_with_opt_params_test_run_t_matrix_opt_forward_model_exp.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_run_t_matrix_with_opt_params_test_run_t_matrix_opt_forward_model_petec.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_run_t_matrix_with_opt_params_test_run_t_matrix_with_opt_params_exp.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_run_t_matrix_with_opt_params_test_run_t_matrix_with_opt_params_petec.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_c_test_t_matrix_c.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_c_test_t_matrix_vectorised.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_optimisation_test_optimisation_part.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_optimisation_test_t_matrix_opt_params_exp.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_optimisation_test_t_matrix_opt_params_petec.npz +0 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/test_opt_param_to_ascii.py +29 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/test_run_t_matrix.py +81 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/test_run_t_matrix_with_opt_params.py +127 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/test_t_matrix_c.py +81 -0
- rock_physics_open-0.0/tests/t_matrix_model_tests/test_t_matrix_optimisation.py +152 -0
- rock_physics_open-0.0/tests/various_utilities_tests/__init__.py +0 -0
- rock_physics_open-0.0/tests/various_utilities_tests/snapshots/multi_vp_vs_rho_stats.csv +4 -0
- rock_physics_open-0.0/tests/various_utilities_tests/snapshots/test_gassmann_test_gassmann.npz +0 -0
- rock_physics_open-0.0/tests/various_utilities_tests/snapshots/test_gassmann_test_gassmann_dry.npz +0 -0
- rock_physics_open-0.0/tests/various_utilities_tests/snapshots/test_gassmann_test_gassmann_sub.npz +0 -0
- rock_physics_open-0.0/tests/various_utilities_tests/snapshots/vp_vs_rho_stats.csv +2 -0
- rock_physics_open-0.0/tests/various_utilities_tests/test_gassmann.py +66 -0
- rock_physics_open-0.0/tests/various_utilities_tests/test_hs_average.py +53 -0
- rock_physics_open-0.0/tests/various_utilities_tests/test_pressure.py +99 -0
- rock_physics_open-0.0/tests/various_utilities_tests/test_reflectivity.py +79 -0
- rock_physics_open-0.0/tests/various_utilities_tests/test_time_shift.py +67 -0
- rock_physics_open-0.0/tests/various_utilities_tests/test_vp_vs_rho_stats.py +61 -0
- rock_physics_open-0.0/tests/various_utilities_tests/test_vrh_3_min.py +78 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @equinor/rokdoc-plugins
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: lint-and-format
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
pre-commit:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout
|
|
12
|
+
uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- name: Setup Python
|
|
15
|
+
uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: 3.11
|
|
18
|
+
|
|
19
|
+
- uses: pre-commit/action@v3.0.1
|
|
20
|
+
with:
|
|
21
|
+
extra_args: --all-files
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: push to main branch
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
lint-and-format:
|
|
10
|
+
uses: ./.github/workflows/lint-and-format.yaml
|
|
11
|
+
|
|
12
|
+
test:
|
|
13
|
+
uses: ./.github/workflows/test.yaml
|
|
14
|
+
|
|
15
|
+
release-please:
|
|
16
|
+
needs: test
|
|
17
|
+
uses: ./.github/workflows/release-please.yaml
|
|
18
|
+
|
|
19
|
+
publish-latest:
|
|
20
|
+
needs: release-please
|
|
21
|
+
if: ${{ needs.release-please.outputs.release_created }}
|
|
22
|
+
uses: ./.github/workflows/publish-pypi.yaml
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
on:
|
|
3
|
+
workflow_call:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
build:
|
|
8
|
+
name: Build wheels
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- uses: actions/setup-python@v5
|
|
15
|
+
with:
|
|
16
|
+
python-version: 3.11
|
|
17
|
+
|
|
18
|
+
- name: Build wheels
|
|
19
|
+
run: |
|
|
20
|
+
pip install build
|
|
21
|
+
python -m build
|
|
22
|
+
|
|
23
|
+
- name: Upload wheels to workflow assets
|
|
24
|
+
uses: actions/upload-artifact@v4
|
|
25
|
+
with:
|
|
26
|
+
name: distribution
|
|
27
|
+
path: dist/
|
|
28
|
+
|
|
29
|
+
publish:
|
|
30
|
+
name: Publish release to PyPI
|
|
31
|
+
needs: build
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
environment:
|
|
34
|
+
name: pypi
|
|
35
|
+
url: https://pypi.org/p/rock-physics-open
|
|
36
|
+
permissions:
|
|
37
|
+
id-token: write # required for Trusted Publishing to PyPI
|
|
38
|
+
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/download-artifact@v4
|
|
41
|
+
with:
|
|
42
|
+
name: distribution
|
|
43
|
+
path: dist/
|
|
44
|
+
merge-multiple: true
|
|
45
|
+
|
|
46
|
+
- name: Publish package distributions to PyPI
|
|
47
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: release-please
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
outputs:
|
|
6
|
+
release_created:
|
|
7
|
+
description: "If true, a release PR has been merged"
|
|
8
|
+
value: ${{ jobs.release-please.outputs.release_created }}
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
pull-requests: write
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
release-please:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: googleapis/release-please-action@v4
|
|
20
|
+
id: release
|
|
21
|
+
outputs:
|
|
22
|
+
release_created: ${{ steps.release.outputs.release_created }}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
strategy:
|
|
10
|
+
fail-fast: false
|
|
11
|
+
matrix:
|
|
12
|
+
config:
|
|
13
|
+
- {
|
|
14
|
+
artifact: "Windows-MSVC",
|
|
15
|
+
cc: "cl", cxx: "cl",
|
|
16
|
+
os: windows-latest,
|
|
17
|
+
}
|
|
18
|
+
- {
|
|
19
|
+
artifact: "Windows-MinGW",
|
|
20
|
+
cc: "gcc", cxx: "g++",
|
|
21
|
+
os: windows-latest,
|
|
22
|
+
}
|
|
23
|
+
- {
|
|
24
|
+
artifact: "Linux",
|
|
25
|
+
cc: "gcc", cxx: "g++",
|
|
26
|
+
os: ubuntu-latest,
|
|
27
|
+
}
|
|
28
|
+
- {
|
|
29
|
+
artifact: "Mac",
|
|
30
|
+
cc: "clang", cxx: "clang++",
|
|
31
|
+
os: macos-latest,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
runs-on: ${{ matrix.config.os }}
|
|
35
|
+
name: ${{ matrix.config.artifact }} (${{ matrix.config.os }}, ${{ matrix.config.cc }}/${{ matrix.config.cxx }})
|
|
36
|
+
steps:
|
|
37
|
+
- name: Checkout
|
|
38
|
+
uses: actions/checkout@v4
|
|
39
|
+
|
|
40
|
+
- name: Setup Python
|
|
41
|
+
uses: actions/setup-python@v5
|
|
42
|
+
with:
|
|
43
|
+
python-version: 3.11
|
|
44
|
+
|
|
45
|
+
- name: Upgrade Pip
|
|
46
|
+
run: pip install --upgrade pip
|
|
47
|
+
|
|
48
|
+
- name: Show Machine Information
|
|
49
|
+
run: |
|
|
50
|
+
pip install py-cpuinfo
|
|
51
|
+
python -m cpuinfo
|
|
52
|
+
|
|
53
|
+
- name: Install Dependencies
|
|
54
|
+
run: pip install .[tests]
|
|
55
|
+
|
|
56
|
+
- name: Test
|
|
57
|
+
if: ${{ matrix.config.artifact == 'Windows-MSVC' }}
|
|
58
|
+
run: pytest
|
|
59
|
+
|
|
60
|
+
- name: Test ( -m "not use_graphics" )
|
|
61
|
+
if: ${{ matrix.config.artifact != 'Windows-MSVC' }}
|
|
62
|
+
run: pytest -m "not use_graphics"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
.idea/
|
|
3
|
+
.vscode/
|
|
4
|
+
.venv
|
|
5
|
+
venv/
|
|
6
|
+
.tool-versions
|
|
7
|
+
.python-version
|
|
8
|
+
|
|
9
|
+
build/
|
|
10
|
+
__pycache__/
|
|
11
|
+
*.pyc
|
|
12
|
+
*.egg-info
|
|
13
|
+
.eggs
|
|
14
|
+
version.py
|
|
15
|
+
.dccache
|
|
16
|
+
.coverage
|
|
17
|
+
|
|
18
|
+
/tests/**/snapshots/*.log
|
|
19
|
+
/tests/data/*.txt
|
|
20
|
+
/tests/data/pat_cem.pkl
|
|
21
|
+
|
|
22
|
+
/Notebooks/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
default_stages: [pre-commit]
|
|
2
|
+
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v5.0.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: check-ast
|
|
8
|
+
language_version: python3.11
|
|
9
|
+
- id: debug-statements
|
|
10
|
+
- id: check-merge-conflict
|
|
11
|
+
- id: detect-private-key
|
|
12
|
+
- id: check-case-conflict
|
|
13
|
+
- id: check-toml
|
|
14
|
+
- id: check-yaml
|
|
15
|
+
- id: check-json
|
|
16
|
+
- id: trailing-whitespace
|
|
17
|
+
- id: end-of-file-fixer
|
|
18
|
+
|
|
19
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
20
|
+
rev: v0.11.7
|
|
21
|
+
hooks:
|
|
22
|
+
- id: ruff
|
|
23
|
+
args: [--fix]
|
|
24
|
+
- id: ruff-format
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{".":"0.1.2"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.2](https://github.com/equinor/rock-physics-open/compare/v0.1.1...v0.1.2) (2025-05-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* avoid building deps wheels ([e188e9d](https://github.com/equinor/rock-physics-open/commit/e188e9d84d95bad08040dff5411b020c0af1426d))
|
|
9
|
+
* check release please output ([275f13e](https://github.com/equinor/rock-physics-open/commit/275f13e018af560d5459e8ac779825de517f0feb))
|
|
10
|
+
* use id for step to catch output value ([681c5e3](https://github.com/equinor/rock-physics-open/commit/681c5e3e36fd90dfc43c704a3298688ea6745e05))
|
|
11
|
+
|
|
12
|
+
## [0.1.1](https://github.com/equinor/rock-physics-open/compare/v0.1.0...v0.1.1) (2025-05-09)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* use pip wheel to build wheels ([7c7b9f4](https://github.com/equinor/rock-physics-open/commit/7c7b9f405309ad8be3c76f91028260936d842b05))
|
|
18
|
+
|
|
19
|
+
## 0.1.0 (2025-05-08)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* initial release ([1ecc1c2](https://github.com/equinor/rock-physics-open/commit/1ecc1c2f0bff534bcdc007d4951865c4c37d5435))
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Contribution Guidelines
|
|
2
|
+
|
|
3
|
+
Instructions and guidelines for how you can contribute to this repository.
|
|
4
|
+
|
|
5
|
+
## Issues
|
|
6
|
+
|
|
7
|
+
For reporting bugs, requesting new features and more do so by [creating a new issue][new-issue]. Make sure that:
|
|
8
|
+
- The issue clearly states expected vs current behavior
|
|
9
|
+
- Includes steps to reproduce bugs
|
|
10
|
+
- Look through the [existing issues][existing-issues] to see if your issue or suggestion has already been reported, if it has, add your own context to that issue instead of creating a new one.
|
|
11
|
+
|
|
12
|
+
## Development
|
|
13
|
+
|
|
14
|
+
How you can contribute code to this repository yourself.
|
|
15
|
+
|
|
16
|
+
### Requirements
|
|
17
|
+
|
|
18
|
+
> We recommend using a Python version and virtual environment manager, such as [asdf][asdf] or [pyenv][pyenv].
|
|
19
|
+
|
|
20
|
+
- [Git][git]
|
|
21
|
+
- [Python][python], version >= 3.11
|
|
22
|
+
|
|
23
|
+
### Install Dependencies
|
|
24
|
+
|
|
25
|
+
To install all the dependencies and test/dev dependencies do:
|
|
26
|
+
```sh
|
|
27
|
+
pip install ."[tests]"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
> This installs [pre-commit][pre-commit] to enforce consistent formatting using [ruff][ruff]. Remember to activate it to automatically format code locally on all commits with:
|
|
31
|
+
> ```sh
|
|
32
|
+
> pre-commit install
|
|
33
|
+
> ```
|
|
34
|
+
|
|
35
|
+
#### Updating / Adding Dependencies
|
|
36
|
+
|
|
37
|
+
Dependencies and their versions are managed by the codeowners based on external requirements.
|
|
38
|
+
|
|
39
|
+
### Running Tests
|
|
40
|
+
|
|
41
|
+
Ensure everyting is working as expected by running all the tests with:
|
|
42
|
+
```sh
|
|
43
|
+
pytest
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
<details>
|
|
47
|
+
<summary>How can i see the test coverage?</summary>
|
|
48
|
+
|
|
49
|
+
Add the `--cov=rock_physics_open` argument to `pytest` to see the coverage across this project:
|
|
50
|
+
```sh
|
|
51
|
+
pytest --cov=rock_physics_open
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
</details>
|
|
55
|
+
|
|
56
|
+
<details>
|
|
57
|
+
<summary>Im getting <code>No module named '_tkinter'</code> error when running the tests?</summary>
|
|
58
|
+
|
|
59
|
+
You can skip these graphics tests by doing:
|
|
60
|
+
```sh
|
|
61
|
+
pytest -m "not use_graphics"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
</details>
|
|
65
|
+
|
|
66
|
+
### Pull-Requests
|
|
67
|
+
|
|
68
|
+
- should only solve a single problem/issue
|
|
69
|
+
- can be in the form of a single or multiple commits
|
|
70
|
+
- must always be up to date with the `main` branch when:
|
|
71
|
+
- the PR is created
|
|
72
|
+
- before the PR is merged
|
|
73
|
+
- must explain **why** and **how** of the proposed changes in the PR description.
|
|
74
|
+
- ensure the commit history is clean
|
|
75
|
+
|
|
76
|
+
#### Commits
|
|
77
|
+
|
|
78
|
+
- Use [conventional commit messages][conventional-commits], as they are used to generate the changelog and perform releases using [release please][release-please].
|
|
79
|
+
- A single commit should only contain a *single logical change*
|
|
80
|
+
- Commit should be as small as possible
|
|
81
|
+
- Commit should contain a complete change
|
|
82
|
+
|
|
83
|
+
#### Review
|
|
84
|
+
|
|
85
|
+
A PR must be approved by a *Code Owner*. Once a PR is marked as ready for review _and_ passes all required checks a code owner will look through the PR as soon as they are able to.
|
|
86
|
+
|
|
87
|
+
If the PR is approved you can either `squash and merge` or `rebase and merge` it with main depending on commits/changes in the PR. If the reviewer had comments, or the request is not approved, address and resolve these comments before re-requesting a review.
|
|
88
|
+
|
|
89
|
+
<!-- External Links -->
|
|
90
|
+
[new-issue]: https://github.com/equinor/rock-physics-open/issues/new/choose
|
|
91
|
+
[existing-issues]: https://github.com/equinor/rock-physics-open/issues?q=is%3Aissue
|
|
92
|
+
[release-please]: https://github.com/googleapis/release-please?tab=readme-ov-file#release-please
|
|
93
|
+
[conventional-commits]: https://www.conventionalcommits.org/en/v1.0.0/
|
|
94
|
+
|
|
95
|
+
[git]: https://git-scm.com
|
|
96
|
+
[python]: https://www.python.org/
|
|
97
|
+
[asdf]: https://asdf-vm.com
|
|
98
|
+
[pyenv]: https://github.com/pyenv/pyenv
|
|
99
|
+
[pre-commit]: https://pre-commit.com
|
|
100
|
+
[ruff]: https://docs.astral.sh/ruff/
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rock_physics_open
|
|
3
|
+
Version: 0.0
|
|
4
|
+
Summary: Equinor Rock Physics Module
|
|
5
|
+
Author-email: Harald Flesche <hfle@equinor.com>, Eivind Jahren <ejah@equinor.com>, Jimmy Zurcher <jiz@equinor.com>
|
|
6
|
+
Maintainer-email: Harald Flesche <hfle@equinor.com>, Eirik Ola Aksnes <eoaksnes@equinor.com>, Christopher Collin Løkken <chcl@equinor.com>, Sivert Utne <sutn@equinor.com>
|
|
7
|
+
Project-URL: Repository, https://github.com/equinor/rock-physics-open
|
|
8
|
+
Project-URL: Homepage, https://github.com/equinor/rock-physics-open
|
|
9
|
+
Keywords: energy,subsurface,seismic,rock physics,scientific,engineering
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering
|
|
12
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
13
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
14
|
+
Classifier: Topic :: Utilities
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Natural Language :: English
|
|
18
|
+
Requires-Python: >=3.11
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: numpy>=1.26.4
|
|
22
|
+
Requires-Dist: pandas>=2.0.2
|
|
23
|
+
Requires-Dist: matplotlib>=3.7.1
|
|
24
|
+
Requires-Dist: scipy<2,>=1.10.1
|
|
25
|
+
Requires-Dist: scikit-learn>=1.2.2
|
|
26
|
+
Requires-Dist: sympy>=1.13.3
|
|
27
|
+
Requires-Dist: tmatrix>=1.0.0
|
|
28
|
+
Provides-Extra: tests
|
|
29
|
+
Requires-Dist: pytest>=8.3.5; extra == "tests"
|
|
30
|
+
Requires-Dist: pytest-cov>=6.1.1; extra == "tests"
|
|
31
|
+
Requires-Dist: ruff>=0.11.6; extra == "tests"
|
|
32
|
+
Requires-Dist: pre-commit>=4.2.0; extra == "tests"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
<div align="center">
|
|
36
|
+
|
|
37
|
+
# rock_physics_open
|
|
38
|
+
|
|
39
|
+
[![License: LGPL v3][license-badge]][license]
|
|
40
|
+
[![SCM Compliance][scm-compliance-badge]][scm-compliance]
|
|
41
|
+
[![on push main action status][on-push-main-action-badge]][on-push-main-action]
|
|
42
|
+
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
This repository contains Python code for rock physics modules created in Equinor by
|
|
46
|
+
Harald Flesche 2010 - ... Batzle-Wang and Span-Wagner fluid equations are implemented
|
|
47
|
+
by Eivind Jahren and Jimmy Zurcher. Some models are based on original Matlab code
|
|
48
|
+
by Tapan Mukerji at Stanford University and ported to Python by Harald Flesche.
|
|
49
|
+
|
|
50
|
+
The modules in this repository are implementations of rock physics models
|
|
51
|
+
used in quantitative seismic analysis, in addition to some utilities for handling
|
|
52
|
+
of seismic and well data. The repository started as internal Equinor plugins, and was
|
|
53
|
+
extracted as a separate repository that could be used within other internal applications
|
|
54
|
+
in 2023. In 2025 it was released under LGPL license.
|
|
55
|
+
|
|
56
|
+
The content of the library can be described as follows:
|
|
57
|
+
|
|
58
|
+
Functions with inputs and outputs consisting of numpy arrays or in some
|
|
59
|
+
cases pandas dataframes. Data frames are used in the cases where there are
|
|
60
|
+
many inputs and/or there is a need for checking the name of inputs, such
|
|
61
|
+
as when there are multiple inputs of the same type which will have
|
|
62
|
+
different purpose. It should be made clear in which cases data dataframes
|
|
63
|
+
are expected.
|
|
64
|
+
There is normally not any check on inputs, it is just the minimum
|
|
65
|
+
definition of equations and other utilities.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## Installation
|
|
69
|
+
|
|
70
|
+
This module can be installed through PyPi with:
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
pip install rock_physics_open
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Alternatively, you can update the dependencies in your `pyproject.toml` file:
|
|
77
|
+
|
|
78
|
+
<!-- x-release-please-start-version -->
|
|
79
|
+
```toml
|
|
80
|
+
dependencies = [
|
|
81
|
+
"rock_physics_open == 0.1.2",
|
|
82
|
+
]
|
|
83
|
+
```
|
|
84
|
+
<!-- x-release-please-end-version -->
|
|
85
|
+
|
|
86
|
+
<!-- External Links -->
|
|
87
|
+
[scm-compliance]: https://developer.equinor.com/governance/scm-policy/
|
|
88
|
+
[scm-compliance-badge]: https://scm-compliance-api.radix.equinor.com/repos/equinor/7ace9d61-dd9d-46b6-901d-f0f008fef142/badge
|
|
89
|
+
[license]: https://www.gnu.org/licenses/lgpl-3.0
|
|
90
|
+
[license-badge]: https://img.shields.io/badge/License-LGPL_v3-blue.svg
|
|
91
|
+
[on-push-main-action]: https://github.com/equinor/rock-physics-open/actions/workflows/on-push-main.yaml
|
|
92
|
+
[on-push-main-action-badge]: https://github.com/equinor/rock-physics-open/actions/workflows/on-push-main.yaml/badge.svg
|