Skip to main content

A Python Interface for the MATLAB package DEBtool, a package with tools for Dynamic Energy Budget models.

Project description

DEBtool-Python-Interface

DEBtoolPyIF is a Python package that interfaces with the MATLAB package DEBtool for Dynamic Energy Budget (DEB) model parameter estimation.

The package currently focuses on two capabilities:

  • Template-driven generation of DEBtool species files (mydata, pars_init, predict, run) following DEBtool naming and structure conventions.
  • A multitier estimation workflow to estimate DEB parameters across hierarchical levels (for example, individual and higher-level entities).

The project is under active development (0.x), with the multitier workflow being the most mature part of the package.

Quick Start Imports

For the main multitier workflow, the package now exposes a curated top-level API:

from DEBtoolPyIF import DataCollection, MultiTierStructure, TierEstimator, TierHierarchy

Concrete observation types remain grouped under DEBtoolPyIF.data_sources:

from DEBtoolPyIF.data_sources import (
    DigestibilityEntityDataSource,
    TimeFeedGroupDataSource,
    TimeWeightEntityDataSource,
)

Installation

You can install DEBtoolPyIF using pip:

pip install DEBtoolPyIF

To use the package you also need to install the MATLAB package DEBtool. You can download it from its GitHub repository. It is recommended to add the DEBtool folder to the MATLAB path.

You also need to install the MATLAB Engine API for Python. You can find instructions on how to install it in the official documentation.

Troubleshooting the installation of the MATLAB Engine API for Python

If you are having trouble installing the MATLAB Engine API for Python, you can try the following:

  1. Open a terminal in administrator mode.
  2. Install from the MATLAB folder
cd "matlabroot\extern\engines\python"
python -m pip install .

Citation

If you use the multitier methodology implemented in this package, please cite:

Oliveira, D.F, Marques, G.M., Carolino, N., Pais, J.,Sousa, J.M.C., Domingos, T., 2024. A multi-tier methodology for the estimation of individual-specific parameters of DEB models. Ecological Modelling 494, 110779. https://doi.org/10.1016/j.ecolmodel.2024.110779

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

debtoolpyif-0.2.0.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

debtoolpyif-0.2.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file debtoolpyif-0.2.0.tar.gz.

File metadata

  • Download URL: debtoolpyif-0.2.0.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for debtoolpyif-0.2.0.tar.gz
Algorithm Hash digest
SHA256 483347073a120d7b6a68acc550662735142fd8fe16717963a3a7e68c93937ed7
MD5 efa720e1478e695f1ab28c79fe9cac5c
BLAKE2b-256 862fac29ccb29afc62dd7301966e73dd6a0425f1ec1dd8827117a5cf107d0961

See more details on using hashes here.

Provenance

The following attestation bundles were made for debtoolpyif-0.2.0.tar.gz:

Publisher: python-publish.yml on diogo-f-oliveira/DEBtool-Python-Interface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file debtoolpyif-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: debtoolpyif-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for debtoolpyif-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94eb68126de1c826905d7cff927162c542845425a69dd75e4e6c87051f08b849
MD5 644847dcc3d60a0d6b62b742dafe984d
BLAKE2b-256 1b7726a0be9ca42a0aac36b44f3cf6484d8b49dba9d9a0512a0a10e180357096

See more details on using hashes here.

Provenance

The following attestation bundles were made for debtoolpyif-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on diogo-f-oliveira/DEBtool-Python-Interface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page