Skip to main content

MPilot is a plugin-based, environmental modeling framework

Project description

MPilot

MPilot is a plugin-based, environmental modeling framework based on a bottom-up, many-to-many workflow that can be represented by a directed (not iterating) graph. MPilot is descended from the Environmental Evaluation Modeling System (EEMS), which was initially a fuzzy logic modeling package based on EMDS.

MPilot Documentation

Installing

MPilot with EEMS can be installed with pip:

$ pip install mpilot

In order to run MPilot with NetCDF datasets, you'll need to install the NetCDF variant:

$ pip install mpilot[netcdf]

Creating models

MPilot models are contained in "command files", using a simple scripting language. Here is an example model, which loads two columns of integer data from a CSV file, sums them, and writes the result to a second CSV file.

A = EEMSRead(
    InFileName = "input.csv",
    InFieldName = "A",
    DataType = "Integer"
)
B = EEMSRead(
    InFileName = "input.csv",
    InFieldName = "B",
    DataType = "Integer"
)
APlusB = Sum(
    InFieldNames = [A, B]
)
Out = EEMSWrite(
    OutFileName = "output.csv",
    OutFieldNames = [A, B, APlusB]
)

Running models

Models are run using the included mpilot program. The following commands will run a model using the EEMS CSV library and using the EEMS NetCDF library respectively:

$ mpilot eems-csv model.mpt
$ mpilot eems-netcdf model.mpt

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

mpilot-1.3.2.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

mpilot-1.3.2-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file mpilot-1.3.2.tar.gz.

File metadata

  • Download URL: mpilot-1.3.2.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure

File hashes

Hashes for mpilot-1.3.2.tar.gz
Algorithm Hash digest
SHA256 c3b0d308e5a244ed13458a20c631050fb715dc0ca9465ca1edbaa8a16f29b507
MD5 a3c069f299b8976358ca7af720c32011
BLAKE2b-256 c7479c473ac4020d48b774049f44e27d6417dfd2757fe41a22f9ddb41793191e

See more details on using hashes here.

File details

Details for the file mpilot-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: mpilot-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure

File hashes

Hashes for mpilot-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 978860343c9ac85f18cfad565674dd6daed31aa7534d7f78a33b3138bdb7c769
MD5 a637d4a4d6bf0eeafb84a8d4902fcf75
BLAKE2b-256 48789e9132fb9975c999ae8381a38dc3f91a83af946960b98f354f02db41887e

See more details on using hashes here.

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