Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 2 KB

README.rst

File metadata and controls

73 lines (50 loc) · 2 KB
Basic Model Interface CI status Coverage status Black

bmi-example-python

An example of implementing the Python bindings for the CSDMS Basic Model Interface (BMI).

Overview

This is an example of implementing a BMI for a simple model that solves the diffusion equation on a uniform rectangular plate with Dirichlet boundary conditions. The model and its BMI are written in Python 3. Tests of the BMI are provided.

This repository is organized with the following directories:

heat
Source code for the model and its BMI
examples
Jupyter Notebooks that demonstrate how to run the model through its BMI
tests
Tests that cover the BMI of the model

Build/Install

This example can be built and installed on Linux, macOS, and Windows.

Prerequisites:

  • Python 3
  • The Python BMI bindings. Follow the build and install directions given in the README in that repository. You can choose to install them from source, or through pip or conda.

To build/install this example from source, using the current Python BMI version, run

$ pip install -e .

To run the tests,

$ pip install -r requirements-testing.txt
$ make test