Skip to main content

MPilot is a plugin-based, environmental modeling framework

Project description

MPilot (beta)

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.

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]
)

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.0.0b8.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

mpilot-1.0.0b8-py2.py3-none-any.whl (26.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mpilot-1.0.0b8.tar.gz.

File metadata

  • Download URL: mpilot-1.0.0b8.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1039-azure

File hashes

Hashes for mpilot-1.0.0b8.tar.gz
Algorithm Hash digest
SHA256 490d6f1ab6e8e0a2a801c754b2e156d6630893e3bd28935d74f1fc0620333c08
MD5 126c35ea787fd2d40b917fb12ae7238c
BLAKE2b-256 41b6e099d900970dc880d8da4fc17000e1975770cc8dcbbb4e62367847bf49d3

See more details on using hashes here.

File details

Details for the file mpilot-1.0.0b8-py2.py3-none-any.whl.

File metadata

  • Download URL: mpilot-1.0.0b8-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1039-azure

File hashes

Hashes for mpilot-1.0.0b8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a6f91c7185f606a82d5d4a72cd0faf519a2fef4c76f2fb23b1426eaa04496af4
MD5 1e2744ae5eb16bde1c9cca921b6e7e1b
BLAKE2b-256 82880afd8da8d054e06dcde705ccd1ab4c938882e09468be408e15247cc9c8cf

See more details on using hashes here.

Supported by

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