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
- Host: GitHub
- URL: https://github.com/pymt-lab/pymt_heatc
- Owner: pymt-lab
- License: mit
- Created: 2020-02-21T23:46:14.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-14T00:21:46.000Z (4 months ago)
- Last Synced: 2025-02-16T17:56:18.619Z (4 months ago)
- Topics: bmi, c, csdms, pymt
- Language: Cython
- Homepage: https://bmi.csdms.io
- Size: 63.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
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.