Skip to main content

PyPestUtils

Suite of Python tools based on PEST utilities to support parameterization with pilot points, drawing stochastic realizations, and MODFLOW post-processing for structured and unstructured grids. This package consists of a (pre-)compiled shared fortran library, and a corresponding low-level python wrapper around the library functions. There are also higher-level "helper" functions to further abstract the granular low-level function calls for common workflow elements.

The low-level functions are relatively strict in their argument types - this is required to effectively pass the array-type data container references to the fortran library. As such, the low-level python functions perform considerable type checking. The higher-level helpers attempt to support a variety of argument types and will attempt coerce to the required type.

This package is currently in pre-alpha development, and is not suitable for use, but early adopters are welcome to have a go.

Examples

There are several jupyter notebook examples of using pypestutils for a structured and quadtree Freyberg model. These notebooks rely on both flopy and pyEMU to help with visualization and processing.

The use the low-level python interface to the shared fortran library, you create a PESTUTILSLIB instance and then can directly call the shared library routines:

from pypestutils.pestutilslib import PestUtilsLib
lib = PestUtilsLib() #the constructor searches for the shared lib
grid_info = lib.install_mf6_grid_from_file("grid","freyberg6.disv.grb")
easting,northing,elev = lib.get_cell_centres_mf6("grid",grid_info["ncells"])

The higher-level helper functions obsecure the calls the fortran library and string together multiple low-level function calls:

import pypestutils.helpers as helpers
grid_info = helpers.get_grid_info_from_file("freyberg6.disv.grb")

Documentation

The documentation for pypestutils can be found here

The documentation for the shared FORTRAN library can be found here

Installation

Dependencies

pypestutils requires numpy and pandas

Easy way

Use pip to install a built distribution for Windows, Linux or macOS:

pip install pypestutils

to also include optional requirements use:

pip install pypestutils[optional]

From source

Installation from source requires a Fortran compiler and build tools. See BUILD.md for details.

Disclaimer

This software is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. This software is provided "as is" and "as-available", and makes no representations or warranties of any kind concerning the software, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable.

Release files for pypestutils 0.3.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 pypestutils 0.3.0
File Size Uploaded
pypestutils-0.3.0.tar.gz 217.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pypestutils 0.3.0
File
pypestutils-0.3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
pypestutils-0.3.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
pypestutils-0.3.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
pypestutils-0.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
pypestutils-0.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
pypestutils-0.3.0-py3-none-macosx_14_0_arm64.whl Python 3 none macOS 14.0+ ARM64 Details
pypestutils-0.3.0-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details

Total release size: 8.8 MB

Release files / pypestutils-0.3.0.tar.gz

Download URL pypestutils-0.3.0.tar.gz
Size 217.7 kB
Tags Source
SHA-256 checksum
How to use checksums
58097fe17374de92d5faf0a06779c4d320b660279cdd000db698821d87337c49
BLAKE2b-256 checksum
How to use checksums
8ea4a9ab507462207a9cc040bc2c6adcef970afc753957b96447ada9c5a1cbbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.

Transparency log

Release files / pypestutils-0.3.0-py3-none-win_amd64.whl

Download URL pypestutils-0.3.0-py3-none-win_amd64.whl
Size 845.3 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
dd656df0a2436a5bc9f64cf454d99260ebf79d2a193e12cd86a9502331879a57
BLAKE2b-256 checksum
How to use checksums
eda734e6cb8c03e6b3203cd6ade56220994950cd2bd5fe8713889b038fd3d62a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.

Transparency log

Release files / pypestutils-0.3.0-py3-none-musllinux_1_2_x86_64.whl

Download URL pypestutils-0.3.0-py3-none-musllinux_1_2_x86_64.whl
Size 1.8 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5f17f74e5153fbad8e9371d68bf003b0e2f6e1765db3702cb3e6fc5c216abc53
BLAKE2b-256 checksum
How to use checksums
9b49974647c99fb620bea1495ba8d554cc4c89e13a20263ea595755362797959
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.

Transparency log

Release files / pypestutils-0.3.0-py3-none-musllinux_1_2_aarch64.whl

Download URL pypestutils-0.3.0-py3-none-musllinux_1_2_aarch64.whl
Size 1.0 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
fe511f2c05a397903056f9fe44c418ba995d67df85fa8e23a72881d120e8b525
BLAKE2b-256 checksum
How to use checksums
36174d5763990b09eed9d2935159d0ae42c27373c037010fa89dd3c4eb8de974
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.

Transparency log

Release files / pypestutils-0.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pypestutils-0.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
81f91334956e76734e559aa8a149977760146f47155e77447225ebd7800a55aa
BLAKE2b-256 checksum
How to use checksums
7ccf008d707bdf8833c2641a97be16e80733574ba17a71146cb72f983feeec1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.

Transparency log

Release files / pypestutils-0.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL pypestutils-0.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 909.8 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
06b68bd4c64b0fcaa98bc4be5de48114e688f71dfb5df2823c52a0b15d9bfb57
BLAKE2b-256 checksum
How to use checksums
2144a5dd1739359d98658b7624c2cc28d2ce24ea32e2c4769cdaecb6f733a69c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.

Transparency log

Release files / pypestutils-0.3.0-py3-none-macosx_14_0_arm64.whl

Download URL pypestutils-0.3.0-py3-none-macosx_14_0_arm64.whl
Size 936.0 kB
Tags Python 3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
8aaffdc19978484713749bc987fe8aac3a34d093baa38e7e80c9d61a23080168
BLAKE2b-256 checksum
How to use checksums
a41b9cc595401549d6f458fe49adcbbf822500f938ac77b2bd1d9c917ef33981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.

Transparency log

Release files / pypestutils-0.3.0-py3-none-macosx_13_0_x86_64.whl

Download URL pypestutils-0.3.0-py3-none-macosx_13_0_x86_64.whl
Size 1.6 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
97cba5e45c97ebf74c18b784074a4ca9fce8fd231bde197ad2628ea00d624ccb
BLAKE2b-256 checksum
How to use checksums
db9863899f9de6167be8cf10d051c0c8b5e7e5bda3f5eabbd0076c721146c542
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

8 release files

0.2.1

5 release files

0.2.0

6 release files

0.1.0

6 release files

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