Skip to content

ruboerner/EmpymodWrapper.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmpymodWrapper

This repository contains a Julia wrapper for the Python library empymod.

Why use this wrapper?

This wrapper allows users to work with the Python library empymod while staying in the Julia environment.

Setup and installation

  1. Make sure you have a working Julia environment.
  2. Open Julia. Run
using Pkg
Pkg.clone("https://github.com/ruboerner/EmpymodWrapper.jl")
  1. Now we need Julia to point to the python executable.
ENV["PYTHON"] = "/path/to/your/python/executable"
Pkg.build("EmpymodWrapper")

If all goes well, you should be able to use empymod from Julia.

You can test the functionality with

] test EmpymodWrapper

Usage

A typical use of EmpymodWrapper looks like

using EmpymodWrapper

hz = empymod_loop(
        src=[0, 0, 0, 0, 90],
        rec=[offset, 0, 0, 0, 90],
        depth=0, res=[2e14, 100], freqtime=1e-3, verb=0)

Note that the input parameters and their intended meaning are identical to those in empymod.

License

This repository is © Ralph-Uwe Börner (2024) under an Apache 2.0 license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages