An open API service indexing awesome lists of open source software.

https://github.com/pymt-lab/pymt_heatc

PyMT component for the C BMI example
https://github.com/pymt-lab/pymt_heatc

bmi c csdms pymt

Last synced: about 1 month ago
JSON representation

PyMT component for the C BMI example

Awesome Lists containing this project

README

        

# pymt_heatc

This is an example of building a model, written in C and wrapped in
Python with the [babelizer](https://github.com/csdms/babelizer), with
the [meson-python](https://meson-python.readthedocs.io/en/latest/) build
system using a `pyproject.toml` file to describe the build.

## Build/Install

This is a sketch of how to build and install this project.

1. Create the conda environment from [environment.yml](./environment.yml) and activate it.
2. Build/install the [C BMI example](https://github.com/csdms/bmi-example-c/#buildinstall)
3. Build/install this project with `make install`

## Use

Import the standalone project into a Python session:

``` python
>>> import pymt_heatc
```

Import the *pymt* component:

``` python
>>> from pymt.MODELS import HeatModelC
```

Try the examples in the [examples](./examples/) directory.