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.1.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.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mpilot-1.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 fe328e7b617f89e2bcc6dae84723d93e6932bc11b156a73bfef8f2802a728f46
MD5 fd2561505967509f3ef280344807d8c3
BLAKE2b-256 9872f653c5765fb70c1bafa38159ff93bce61e2e383df62521a8a487a7cae88d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpilot-1.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8843e67f3fdde9ca721056cb5e00a726ede338de819ee17096e7aa3f94480845
MD5 5dbe06f82f53f72aabfe3a75fbad2309
BLAKE2b-256 6533aeb1cb941b5dac39ad655e47fd3d47c5cb44ba5cb4ce74aa555a11d07fc0

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