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.

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

Uploaded Source

Built Distribution

mpilot-1.0.0b21-py2.py3-none-any.whl (28.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mpilot-1.0.0b21.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.8.0-1039-azure

File hashes

Hashes for mpilot-1.0.0b21.tar.gz
Algorithm Hash digest
SHA256 b4b37e6e45eae1fa1e232b6b49d57fd9638b3d5bd64bcaa7121c681f1a47b211
MD5 8d5c9a9eee84ffcab95f07cd87169885
BLAKE2b-256 0adbf716a4708aa406b71995e2dc00007305e56e1289b76731d38e708035f028

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpilot-1.0.0b21-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.8.0-1039-azure

File hashes

Hashes for mpilot-1.0.0b21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da5077ad1b29c290a31cf7ff1080e1da082957c4f6688ae1e5349d632a2f666e
MD5 b8f2de421528df78a6e4b759009bc98d
BLAKE2b-256 096736cf99fe2f14940d8a73d4b7ee55b35630018db0e9c4a3e9040718da10ba

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