Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mdpiper/pymt_heatc

PyMT component for the C BMI example
https://github.com/mdpiper/pymt_heatc

bmi c csdms pymt

Last synced: 26 days 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 `_,
with the `meson-python `_ 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` and activate it.
2. Build/install the `C BMI example `_
3. Build/install this project with ``make install``

Use
---

Import the standalone project into a Python session:

.. code-block:: python

>>> import pymt_heatc

Import the *pymt* component:

.. code-block:: python

>>> from pymt.MODELS import HeatModelC

Try the examples in the `examples` directory.