[](https://landscape.io/github/permamodel/bmi-ilamb/master)
[](https://coveralls.io/r/permamodel/bmi-ilamb?branch=master)
# bmi-ilamb
A Basic Model Interface (BMI)
for version 2 (Python)
of the International Land Model Benchmarking Project (ILAMB)
benchmarking toolkit.
* The [journal article](http://dx.doi.org/10.1016/j.cageo.2012.04.002)
that describes BMI
* ILAMB [home page](https://www.ilamb.org/)
* ILAMB [source code repository](https://bitbucket.org/ncollier/ilamb)
* ILAMB [documentation](http://climate.ornl.gov/~ncf/ILAMB/docs/index.html)
## Installation
Clone and install **bmi-ilamb** into a Python distribution with
$ git clone https://github.com/permamodel/bmi-ilamb
$ cd bmi-ilamb
$ python setup.py install
ILAMB itself must also be installed;
follow the [instructions](http://climate.ornl.gov/~ncf/ILAMB/docs/install.html)
in the ILAMB documentation
for downloading and installing ILAMB
into the same Python distribution as **bmi-ilamb**.
## Use
Two configuration files are needed:
one for ILAMB, the other for the BMI.
A description of the ILAMB configuration file can be found
in the ILAMB documentation.
The BMI configuration file contains values
that are passed to ILAMB's `ilamb-run` script.
Examples (
[ilamb.cfg](https://github.com/permamodel/bmi-ilamb/blob/master/bmi_ilamb/data/ilamb.cfg)
and
[bmi_ilamb.yaml](https://github.com/permamodel/bmi-ilamb/blob/master/bmi_ilamb/data/bmi_ilamb.yaml),
respectively)
are given in the **data** directory
of this repository.
In a Python session, execute:
```python
from bmi_lamb import BmiIlamb
m = BmiIlamb()
m.initialize('/path/to/bmi_ilamb.yaml')
m.update() # calls the ilamb-run script
m.finalize()
```
The path to the BMI configuration file can be relative or absolute.
The result:
```bash
$ ls -F
_build/ log
```
View the run log with:
$ cat log
Display ILAMB's graphical output with a web browser:
$ firefox _build/index.html
Metadata
Release files for bmi-ilamb 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bmi-ilamb-0.1.1.tar.gz | 13.9 kB | Without provenance | Details for bmi-ilamb-0.1.1.tar.gz |
Release files / bmi-ilamb-0.1.1.tar.gz
| Download URL | bmi-ilamb-0.1.1.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eef178664e699beaa0e4cb4b0cd16c62da478d7d2f12bdbc582693af6b63ca64
|
|
BLAKE2b-256 checksum How to use checksums |
ce0fda0108e6c227fa670c7f2adc28f95591651b50afc4520e21c3d10bcfd638
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bmi-ilamb 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.