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.
Files changed (289) hide show
  1. rock_physics_open-0.0/.github/CODEOWNERS +1 -0
  2. rock_physics_open-0.0/.github/dependabot.yaml +11 -0
  3. rock_physics_open-0.0/.github/workflows/lint-and-format.yaml +21 -0
  4. rock_physics_open-0.0/.github/workflows/on-pull-request.yaml +10 -0
  5. rock_physics_open-0.0/.github/workflows/on-push-main.yaml +22 -0
  6. rock_physics_open-0.0/.github/workflows/publish-pypi.yaml +47 -0
  7. rock_physics_open-0.0/.github/workflows/release-please.yaml +22 -0
  8. rock_physics_open-0.0/.github/workflows/test.yaml +62 -0
  9. rock_physics_open-0.0/.gitignore +22 -0
  10. rock_physics_open-0.0/.pre-commit-config.yaml +24 -0
  11. rock_physics_open-0.0/.release-please-manifest.json +1 -0
  12. rock_physics_open-0.0/CHANGELOG.md +24 -0
  13. rock_physics_open-0.0/CONTRIBUTING.md +100 -0
  14. rock_physics_open-0.0/LICENSE +165 -0
  15. rock_physics_open-0.0/PKG-INFO +92 -0
  16. rock_physics_open-0.0/README.md +58 -0
  17. rock_physics_open-0.0/SECURITY.md +16 -0
  18. rock_physics_open-0.0/pyproject.toml +96 -0
  19. rock_physics_open-0.0/pytest.ini +6 -0
  20. rock_physics_open-0.0/release-please-config.json +11 -0
  21. rock_physics_open-0.0/setup.cfg +4 -0
  22. rock_physics_open-0.0/src/__init__.py +0 -0
  23. rock_physics_open-0.0/src/rock_physics_open/__init__.py +0 -0
  24. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/__init__.py +0 -0
  25. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/anisotropy.py +162 -0
  26. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/__init__.py +17 -0
  27. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/class_stats.py +58 -0
  28. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/lin_class.py +47 -0
  29. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/mahal_class.py +56 -0
  30. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/norm_class.py +65 -0
  31. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/poly_class.py +40 -0
  32. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/post_prob.py +26 -0
  33. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/classification_functions/two_step_classification.py +46 -0
  34. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/conversions.py +10 -0
  35. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/__init__.py +11 -0
  36. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/dict_to_float.py +33 -0
  37. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/dim_check_vector.py +83 -0
  38. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/filter_input.py +126 -0
  39. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/gen_utilities/filter_output.py +78 -0
  40. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/__init__.py +14 -0
  41. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/dummy_vars.py +42 -0
  42. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/exponential_model.py +119 -0
  43. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/import_ml_models.py +61 -0
  44. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/run_regression.py +151 -0
  45. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/machine_learning_utilities/sigmoidal_model.py +188 -0
  46. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/snapshot_test_utilities/__init__.py +10 -0
  47. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/snapshot_test_utilities/compare_snapshots.py +145 -0
  48. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/snapshot_test_utilities/snapshots.py +54 -0
  49. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/__init__.py +43 -0
  50. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/backus_ave.py +53 -0
  51. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/dvorkin_nur.py +69 -0
  52. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/gassmann.py +140 -0
  53. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/hashin_shtrikman.py +195 -0
  54. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/hertz_mindlin.py +43 -0
  55. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/moduli_velocity.py +51 -0
  56. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/reflection_eq.py +98 -0
  57. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/rho.py +59 -0
  58. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/voigt_reuss_hill.py +128 -0
  59. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/walton.py +38 -0
  60. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/std_functions/wood_brie.py +77 -0
  61. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/Equinor_logo.gif +0 -0
  62. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/Equinor_logo.ico +0 -0
  63. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/__init__.py +24 -0
  64. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/display_result_statistics.py +83 -0
  65. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/gassmann_dry_mod.py +37 -0
  66. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/gassmann_mod.py +37 -0
  67. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/gassmann_sub_mod.py +53 -0
  68. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/hs_average.py +40 -0
  69. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/pressure.py +88 -0
  70. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/reflectivity.py +85 -0
  71. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/timeshift.py +91 -0
  72. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/vp_vs_rho_set_statistics.py +154 -0
  73. rock_physics_open-0.0/src/rock_physics_open/equinor_utilities/various_utilities/vrh_3_min.py +61 -0
  74. rock_physics_open-0.0/src/rock_physics_open/fluid_models/__init__.py +9 -0
  75. rock_physics_open-0.0/src/rock_physics_open/fluid_models/brine_model/__init__.py +5 -0
  76. rock_physics_open-0.0/src/rock_physics_open/fluid_models/brine_model/brine_properties.py +143 -0
  77. rock_physics_open-0.0/src/rock_physics_open/fluid_models/gas_model/__init__.py +5 -0
  78. rock_physics_open-0.0/src/rock_physics_open/fluid_models/gas_model/gas_properties.py +277 -0
  79. rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/__init__.py +5 -0
  80. rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/dead_oil_density.py +60 -0
  81. rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/dead_oil_velocity.py +28 -0
  82. rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/live_oil_density.py +79 -0
  83. rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/live_oil_velocity.py +24 -0
  84. rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/oil_bubble_point.py +69 -0
  85. rock_physics_open-0.0/src/rock_physics_open/fluid_models/oil_model/oil_properties.py +114 -0
  86. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/__init__.py +57 -0
  87. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/cemented_shalysand_sandyshale_models.py +304 -0
  88. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/constant_cement_models.py +204 -0
  89. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/constant_cement_optimisation.py +122 -0
  90. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/contact_cement_model.py +138 -0
  91. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/curvefit_sandstone_models.py +143 -0
  92. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/friable_models.py +178 -0
  93. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/friable_optimisation.py +112 -0
  94. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/friable_shalysand_sandyshale_models.py +235 -0
  95. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/patchy_cement_fluid_substitution_model.py +477 -0
  96. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/patchy_cement_model.py +286 -0
  97. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/patchy_cement_optimisation.py +251 -0
  98. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/unresolved_cemented_sandshale_models.py +134 -0
  99. rock_physics_open-0.0/src/rock_physics_open/sandstone_models/unresolved_friable_sandshale_models.py +126 -0
  100. rock_physics_open-0.0/src/rock_physics_open/shale_models/__init__.py +19 -0
  101. rock_physics_open-0.0/src/rock_physics_open/shale_models/dem.py +174 -0
  102. rock_physics_open-0.0/src/rock_physics_open/shale_models/dem_dual_por.py +61 -0
  103. rock_physics_open-0.0/src/rock_physics_open/shale_models/kus_tok.py +59 -0
  104. rock_physics_open-0.0/src/rock_physics_open/shale_models/multi_sca.py +133 -0
  105. rock_physics_open-0.0/src/rock_physics_open/shale_models/pq.py +102 -0
  106. rock_physics_open-0.0/src/rock_physics_open/shale_models/sca.py +90 -0
  107. rock_physics_open-0.0/src/rock_physics_open/shale_models/shale4_mineral.py +147 -0
  108. rock_physics_open-0.0/src/rock_physics_open/shale_models/shale4_mineral_dem_overlay.py +92 -0
  109. rock_physics_open-0.0/src/rock_physics_open/span_wagner/__init__.py +5 -0
  110. rock_physics_open-0.0/src/rock_physics_open/span_wagner/co2_properties.py +438 -0
  111. rock_physics_open-0.0/src/rock_physics_open/span_wagner/coefficients.py +165 -0
  112. rock_physics_open-0.0/src/rock_physics_open/span_wagner/equations.py +104 -0
  113. rock_physics_open-0.0/src/rock_physics_open/span_wagner/tables/__init__.py +0 -0
  114. rock_physics_open-0.0/src/rock_physics_open/span_wagner/tables/carbon_dioxide_density.npz +0 -0
  115. rock_physics_open-0.0/src/rock_physics_open/span_wagner/tables/lookup_table.py +33 -0
  116. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/Equinor_logo.ico +0 -0
  117. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/__init__.py +45 -0
  118. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/carbonate_pressure_substitution.py +124 -0
  119. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/curvefit_t_matrix_exp.py +124 -0
  120. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/curvefit_t_matrix_min.py +86 -0
  121. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/opt_subst_utilities.py +415 -0
  122. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/parse_t_matrix_inputs.py +297 -0
  123. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/run_t_matrix.py +243 -0
  124. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_C.py +210 -0
  125. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_opt_fluid_sub_exp.py +137 -0
  126. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_opt_fluid_sub_petec.py +163 -0
  127. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_opt_forward_model_exp.py +72 -0
  128. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_opt_forward_model_min.py +86 -0
  129. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_parameter_optimisation_exp.py +172 -0
  130. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_parameter_optimisation_min.py +159 -0
  131. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/__init__.py +12 -0
  132. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/array_functions.py +75 -0
  133. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_c_eff.py +163 -0
  134. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_isolated.py +95 -0
  135. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_kd.py +40 -0
  136. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_kd_eff.py +116 -0
  137. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_kd_uuv.py +18 -0
  138. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_pressure.py +140 -0
  139. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_t.py +71 -0
  140. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_td.py +42 -0
  141. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_theta.py +43 -0
  142. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_x.py +33 -0
  143. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/calc_z.py +50 -0
  144. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/check_and_tile.py +43 -0
  145. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/g_tensor.py +140 -0
  146. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/iso_av.py +60 -0
  147. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/iso_ave_all.py +55 -0
  148. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/pressure_input.py +44 -0
  149. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/t_matrix_vec.py +278 -0
  150. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/t_matrix_vector/velocity_vti_angles.py +81 -0
  151. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/tmatrix_python.dll +0 -0
  152. rock_physics_open-0.0/src/rock_physics_open/t_matrix_models/tmatrix_python.so +0 -0
  153. rock_physics_open-0.0/src/rock_physics_open/ternary_plots/__init__.py +3 -0
  154. rock_physics_open-0.0/src/rock_physics_open/ternary_plots/gen_ternary_plot.py +73 -0
  155. rock_physics_open-0.0/src/rock_physics_open/ternary_plots/shale_prop_ternary.py +337 -0
  156. rock_physics_open-0.0/src/rock_physics_open/ternary_plots/ternary_patches.py +277 -0
  157. rock_physics_open-0.0/src/rock_physics_open/ternary_plots/ternary_plot_utilities.py +197 -0
  158. rock_physics_open-0.0/src/rock_physics_open/ternary_plots/unconventionals_ternary.py +75 -0
  159. rock_physics_open-0.0/src/rock_physics_open/version.py +21 -0
  160. rock_physics_open-0.0/src/rock_physics_open.egg-info/PKG-INFO +92 -0
  161. rock_physics_open-0.0/src/rock_physics_open.egg-info/SOURCES.txt +287 -0
  162. rock_physics_open-0.0/src/rock_physics_open.egg-info/dependency_links.txt +1 -0
  163. rock_physics_open-0.0/src/rock_physics_open.egg-info/requires.txt +13 -0
  164. rock_physics_open-0.0/src/rock_physics_open.egg-info/top_level.txt +1 -0
  165. rock_physics_open-0.0/tests/__init__.py +0 -0
  166. rock_physics_open-0.0/tests/classification_functions_tests/__init__.py +0 -0
  167. rock_physics_open-0.0/tests/classification_functions_tests/test_class_stats.py +47 -0
  168. rock_physics_open-0.0/tests/classification_functions_tests/test_lin_class.py +43 -0
  169. rock_physics_open-0.0/tests/classification_functions_tests/test_mahal_class.py +134 -0
  170. rock_physics_open-0.0/tests/classification_functions_tests/test_norm_class.py +136 -0
  171. rock_physics_open-0.0/tests/classification_functions_tests/test_poly_class.py +45 -0
  172. rock_physics_open-0.0/tests/classification_functions_tests/test_two_step_class.py +56 -0
  173. rock_physics_open-0.0/tests/config.py +28 -0
  174. rock_physics_open-0.0/tests/conftest.py +20 -0
  175. rock_physics_open-0.0/tests/data/.gitattributes +1 -0
  176. rock_physics_open-0.0/tests/data/exp_opt_param.pkl +0 -0
  177. rock_physics_open-0.0/tests/data/exp_opt_param_test.pkl +0 -0
  178. rock_physics_open-0.0/tests/data/petec_opt_param.pkl +0 -0
  179. rock_physics_open-0.0/tests/data/petec_opt_param_test.pkl +0 -0
  180. rock_physics_open-0.0/tests/data/sandstone_optimisation.csv +50 -0
  181. rock_physics_open-0.0/tests/data/test_well.csv +435 -0
  182. rock_physics_open-0.0/tests/data/tmatrix_test_data.csv +232 -0
  183. rock_physics_open-0.0/tests/fluid_model_tests/__init__.py +0 -0
  184. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_brine_density.npz +0 -0
  185. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_brine_properties.npz +0 -0
  186. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_brine_velocity.npz +0 -0
  187. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_water_density.npz +0 -0
  188. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_water_properties.npz +0 -0
  189. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_brine_properties_test_water_velocity.npz +0 -0
  190. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_gas_properties_test_gas_properties.npz +0 -0
  191. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_oil_properties_test_live_oil_density.npz +0 -0
  192. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_oil_properties_test_live_oil_velocity.npz +0 -0
  193. rock_physics_open-0.0/tests/fluid_model_tests/snapshots/test_oil_properties_test_oil_prop.npz +0 -0
  194. rock_physics_open-0.0/tests/fluid_model_tests/test_brine_properties.py +102 -0
  195. rock_physics_open-0.0/tests/fluid_model_tests/test_gas_properties.py +45 -0
  196. rock_physics_open-0.0/tests/fluid_model_tests/test_oil_properties.py +66 -0
  197. rock_physics_open-0.0/tests/gen_utilities_tests/__init__.py +0 -0
  198. rock_physics_open-0.0/tests/gen_utilities_tests/test_dict_to_float.py +15 -0
  199. rock_physics_open-0.0/tests/gen_utilities_tests/test_dim_check_vector.py +38 -0
  200. rock_physics_open-0.0/tests/gen_utilities_tests/test_filter_input.py +93 -0
  201. rock_physics_open-0.0/tests/gen_utilities_tests/test_filter_output.py +25 -0
  202. rock_physics_open-0.0/tests/sandstone_model_tests/__init__.py +0 -0
  203. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_constant_cement_model_test_constant_cement_model.npz +0 -0
  204. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_constant_cement_model_test_constant_cement_model_dry.npz +0 -0
  205. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_constant_cement_model_test_constant_cement_model_high_phi.npz +0 -0
  206. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_constant_cement_model_test_constant_cement_model_high_phi_extrapolate.npz +0 -0
  207. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_contact_cement_model_test_contact_cement_model.npz +0 -0
  208. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_friable_models_test_friable_model.npz +0 -0
  209. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_friable_models_test_friable_model_dry.npz +0 -0
  210. 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
  211. 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
  212. 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
  213. 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
  214. 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
  215. 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
  216. 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
  217. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_patchy_cement_fluid_sub_model_test_patchy_cement_model_weight.npz +0 -0
  218. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandstone_optimisation_test_constant_cement_optimisation.npz +0 -0
  219. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandstone_optimisation_test_friable_optimisation.npz +0 -0
  220. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandstone_optimisation_test_patchy_cement_optimisation.npz +0 -0
  221. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandy_shale_models_test_cemented_sandy_shale_model.npz +0 -0
  222. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_sandy_shale_models_test_friable_sandy_shale_model.npz +0 -0
  223. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_unresolved_models_test_unresolved_cemented_sand_shale_model.npz +0 -0
  224. rock_physics_open-0.0/tests/sandstone_model_tests/snapshots/test_unresolved_models_test_unresolved_friable_sand_shale_model.npz +0 -0
  225. rock_physics_open-0.0/tests/sandstone_model_tests/test_constant_cement_model.py +120 -0
  226. rock_physics_open-0.0/tests/sandstone_model_tests/test_contact_cement_model.py +49 -0
  227. rock_physics_open-0.0/tests/sandstone_model_tests/test_friable_models.py +56 -0
  228. rock_physics_open-0.0/tests/sandstone_model_tests/test_patchy_cement_fluid_sub_model.py +340 -0
  229. rock_physics_open-0.0/tests/sandstone_model_tests/test_sandstone_optimisation.py +111 -0
  230. rock_physics_open-0.0/tests/sandstone_model_tests/test_sandy_shale_models.py +111 -0
  231. rock_physics_open-0.0/tests/sandstone_model_tests/test_unresolved_models.py +112 -0
  232. rock_physics_open-0.0/tests/shale_model_tests/__init__.py +0 -0
  233. rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_dem_models_test_dem_4_min_model.npz +0 -0
  234. rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_dem_models_test_dem_4_min_overlay_model.npz +0 -0
  235. rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_dem_models_test_dem_dual_por_model.npz +0 -0
  236. rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_dem_models_test_dem_model.npz +0 -0
  237. rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_kus_tok_model_test_kus_tok_model.npz +0 -0
  238. rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_sca_models_test_multi_sca_model.npz +0 -0
  239. rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_sca_models_test_sca_model.npz +0 -0
  240. rock_physics_open-0.0/tests/shale_model_tests/snapshots/test_ternary_plots_test_ternary.npz +0 -0
  241. rock_physics_open-0.0/tests/shale_model_tests/test_dem_models.py +146 -0
  242. rock_physics_open-0.0/tests/shale_model_tests/test_kus_tok_model.py +30 -0
  243. rock_physics_open-0.0/tests/shale_model_tests/test_sca_models.py +53 -0
  244. rock_physics_open-0.0/tests/shale_model_tests/test_ternary_plots.py +43 -0
  245. rock_physics_open-0.0/tests/span_wagner/__init__.py +0 -0
  246. rock_physics_open-0.0/tests/span_wagner/snapshots/test_co2_properties_test_co2_properties.npz +0 -0
  247. rock_physics_open-0.0/tests/span_wagner/test_co2_properties.py +38 -0
  248. rock_physics_open-0.0/tests/std_functions_tests/__init__.py +0 -0
  249. rock_physics_open-0.0/tests/std_functions_tests/test_backus_average.py +94 -0
  250. rock_physics_open-0.0/tests/std_functions_tests/test_dvorkin_nur.py +50 -0
  251. rock_physics_open-0.0/tests/std_functions_tests/test_gassmann.py +39 -0
  252. rock_physics_open-0.0/tests/std_functions_tests/test_hashin_shtrikman.py +166 -0
  253. rock_physics_open-0.0/tests/std_functions_tests/test_hertz_mindlin.py +52 -0
  254. rock_physics_open-0.0/tests/std_functions_tests/test_moduli_velocity.py +97 -0
  255. rock_physics_open-0.0/tests/std_functions_tests/test_reflectivity.py +57 -0
  256. rock_physics_open-0.0/tests/std_functions_tests/test_rho.py +49 -0
  257. rock_physics_open-0.0/tests/std_functions_tests/test_voigt_reuss_hill.py +138 -0
  258. rock_physics_open-0.0/tests/std_functions_tests/test_walton.py +90 -0
  259. rock_physics_open-0.0/tests/std_functions_tests/test_wood_brie.py +83 -0
  260. rock_physics_open-0.0/tests/t_matrix_model_tests/__init__.py +0 -0
  261. rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_run_t_matrix_test_run_t_matrix.npz +0 -0
  262. rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_run_t_matrix_test_run_t_matrix_porosity_vectorised.npz +0 -0
  263. 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
  264. 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
  265. 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
  266. 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
  267. rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_c_test_t_matrix_c.npz +0 -0
  268. rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_c_test_t_matrix_vectorised.npz +0 -0
  269. rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_optimisation_test_optimisation_part.npz +0 -0
  270. rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_optimisation_test_t_matrix_opt_params_exp.npz +0 -0
  271. rock_physics_open-0.0/tests/t_matrix_model_tests/snapshots/test_t_matrix_optimisation_test_t_matrix_opt_params_petec.npz +0 -0
  272. rock_physics_open-0.0/tests/t_matrix_model_tests/test_opt_param_to_ascii.py +29 -0
  273. rock_physics_open-0.0/tests/t_matrix_model_tests/test_run_t_matrix.py +81 -0
  274. rock_physics_open-0.0/tests/t_matrix_model_tests/test_run_t_matrix_with_opt_params.py +127 -0
  275. rock_physics_open-0.0/tests/t_matrix_model_tests/test_t_matrix_c.py +81 -0
  276. rock_physics_open-0.0/tests/t_matrix_model_tests/test_t_matrix_optimisation.py +152 -0
  277. rock_physics_open-0.0/tests/various_utilities_tests/__init__.py +0 -0
  278. rock_physics_open-0.0/tests/various_utilities_tests/snapshots/multi_vp_vs_rho_stats.csv +4 -0
  279. rock_physics_open-0.0/tests/various_utilities_tests/snapshots/test_gassmann_test_gassmann.npz +0 -0
  280. rock_physics_open-0.0/tests/various_utilities_tests/snapshots/test_gassmann_test_gassmann_dry.npz +0 -0
  281. rock_physics_open-0.0/tests/various_utilities_tests/snapshots/test_gassmann_test_gassmann_sub.npz +0 -0
  282. rock_physics_open-0.0/tests/various_utilities_tests/snapshots/vp_vs_rho_stats.csv +2 -0
  283. rock_physics_open-0.0/tests/various_utilities_tests/test_gassmann.py +66 -0
  284. rock_physics_open-0.0/tests/various_utilities_tests/test_hs_average.py +53 -0
  285. rock_physics_open-0.0/tests/various_utilities_tests/test_pressure.py +99 -0
  286. rock_physics_open-0.0/tests/various_utilities_tests/test_reflectivity.py +79 -0
  287. rock_physics_open-0.0/tests/various_utilities_tests/test_time_shift.py +67 -0
  288. rock_physics_open-0.0/tests/various_utilities_tests/test_vp_vs_rho_stats.py +61 -0
  289. 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,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/" # checks workflow files in ".github/workflows"
5
+ schedule:
6
+ interval: "monthly"
7
+
8
+ - package-ecosystem: "pip"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "monthly"
@@ -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,10 @@
1
+ name: on-pull-request
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ jobs:
7
+ lint-and-format:
8
+ uses: ./.github/workflows/lint-and-format.yaml
9
+ test:
10
+ uses: ./.github/workflows/test.yaml
@@ -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