Skip to main content

INTEGRATE Python Module

Build Status PyPI Documentation License: MIT Python 3.10+

This repository contains the INTEGRATE Python module for localized probabilistic data integration in geophysics.

Installation

Assuming you already have Python 3.10+ installed:

libaarhusxyz must be installed manually before installing integrate_module, because the version that supports Python >= 3.12 is only available on GitHub (not PyPI):

pip install git+https://github.com/cultpenguin/libaarhusxyz
pip install integrate_module

On Windows, this will also install the Python wrapper for GA-AEM (1D EM forward modeling - GPL v2 code): ga-aem-forward-win

On Linux/macOS, you will need to install GA-AEM manually.

Using pip (from PyPI, on Ubuntu)

# Install python3 venv
sudo apt install python3-venv

# Create virtual environment
python3 -m venv ~/integrate
source ~/integrate/bin/activate
pip install --upgrade pip

# Install integrate module
pip install integrate_module

Using pip (from source, on Ubuntu)

# Install python3 venv
sudo apt install python3-venv

# Create virtual environment
python3 -m venv ~/integrate
source ~/integrate/bin/activate
pip install --upgrade pip

# Install integrate module
cd path/to/integrate_module
pip install -e .

Using Conda + pip (from PyPI)

Create a Conda environment (called integrate) and install the required modules:

conda create --name integrate python=3.10 numpy pandas matplotlib scipy tqdm requests h5py psutil
conda activate integrate
pip install integrate_module

Using Conda + pip (from source)

Create a Conda environment (called integrate) and install the required modules:

conda create --name integrate python=3.10 numpy pandas matplotlib scipy tqdm requests h5py psutil
conda activate integrate
pip install -e .

GA-AEM

In order to use GA-AEM for forward EM modeling, the 'gatdaem1d' Python module must be installed. Follow instructions at https://github.com/GeoscienceAustralia/ga-aem or use the information below.

PyPI package for Windows

On Windows, the ga-aem-forward-win package will be automatically installed, providing access to the GA-AEM forward code. It can be installed manually using:

pip install ga-aem-forward-win

Pre-compiled Python module for Windows

  1. Download the pre-compiled version of GA-AEM for Windows from the latest release: https://github.com/GeoscienceAustralia/ga-aem/releases (GA-AEM.zip)

  2. Download precompiled FFTW3 Windows DLLs from https://www.fftw.org/install/windows.html (fftw-3.3.5-dll64.zip)

  3. Extract both archives:

    • unzip GA-AEM.zip to get GA-AEM
    • unzip fftw-3.3.5-dll64.zip to get fftw-3.3.5-dll64
  4. Copy FFTW3 DLLs to GA-AEM Python directory:

    cp fftw-3.3.5-dll64/*.dll GA-AEM/python/gatdaem1d/

  5. Install the Python gatdaem1d module:

cd GA-AEM/python/
pip install -e .

# Test the installation
cd examples
python integrate_skytem.py

Compile GA-AEM Python module on Debian/Ubuntu/Linux

A script that downloads and installs GA-AEM is located in scripts/cmake_build_script_DebianUbuntu_gatdaem1d.sh. This script has been tested and confirmed to work on both Debian and Ubuntu distributions. Be sure to use the appropriate Python environment and then run:

sh scripts/cmake_build_script_DebianUbuntu_gatdaem1d.sh
cd ga-aem/install-ubuntu/python
pip install .

Compile GA-AEM Python module on macOS/Homebrew

First install Homebrew, then run:

sh ./scripts/cmake_build_script_homebrew_gatdaem1d.sh
cd ga-aem/install-homebrew/python
pip install .

Development

The main branch is the most stable, with less frequent updates but larger changes.

The develop branch contains the current development code and may be updated frequently. Some functions and examples may be broken.

An extra set of tests and examples are located in the experimental sub-branch https://github.com/cultpenguin/integrate_module_experimental/ <https://github.com/cultpenguin/integrate_module_experimental/>_. Please ask the developers for access to this branch if needed. To clone the main repository with the experimental branch, use:

git clone --recurse-submodules git@github.com:cultpenguin/integrate_module.git

You may need to run the following command to update the submodules:

cd experimental
git submodule update --init --recursive

Metadata

Release files for integrate_module 0.99.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for integrate_module 0.99.0
File Size Uploaded Provenance Actions
integrate_module-0.99.0.tar.gz 199.4 kB Without provenance Details for integrate_module-0.99.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for integrate_module 0.99.0
File Interpreter ABI Platform Actions
integrate_module-0.99.0-py3-none-any.whl Python 3 none any Details for integrate_module-0.99.0-py3-none-any.whl

Total release size: 403.3 kB

Release files / integrate_module-0.99.0.tar.gz

Download URL integrate_module-0.99.0.tar.gz
Size 199.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4bedb0827584d09cbd379076eb0e33935e3a3803591fbd9a8995231097247e2c
BLAKE2b-256 checksum
How to use checksums
520224e05d48b04c6117ea8645edc5034086df39ba81798d35ac07cfc21b2a72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / integrate_module-0.99.0-py3-none-any.whl

Download URL integrate_module-0.99.0-py3-none-any.whl
Size 204.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a7692a59fe91b0c6b48b985fa555635a1a7fb110c828e0a43de7829199a4f1b
BLAKE2b-256 checksum
How to use checksums
cb25417bd8c4829a5856d01af33918a1cc3bcbeea70cd59fd71ef7758ca14b01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for integrate_module 0.99.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page