inlab-geo / cofi-examples

Inversion problem examples running with CoFI
https://colab.research.google.com/github/inlab-geo/cofi-examples/blob/main/index.ipynb
BSD 2-Clause "Simplified" License
5 stars 6 forks source link

fix: use ctypes branch of pysurf96 #40

Closed JuergHauser closed 2 days ago

JuergHauser commented 1 week ago

Description

The Rayleigh wave phase velocity tutorial uses a wrapper to surf96 to solve the forward problem. We maintain our own version of the wrapper that fails to build with f2py due to upstream changes to the f2py toolchain. A new branch has been created for pysurf96 and it uses ctypes which simplifies the build process.

https://github.com/inlab-geo/cofi-examples/blob/main/tutorials/rayleigh_wave_phase_velocity/1D_rayleigh_wave_phase_velocity_inversion.ipynb

https://github.com/inlab-geo/pysurf96/tree/ctypes

This change replaces pip install -U cofi git+https://github.com/inlab-geo/pysurf96.git with pip install -U cofi git+https://github.com/inlab-geo/pysurf96.git@ctypes in the relevant notebook.

Type of Change

Resolves #39

Requirements

https://github.com/inlab-geo/pysurf96