@@ -5,19 +5,33 @@ Python bindings for the CSDMS [Basic Model Interface](https://bmi.readthedocs.io
55![ [ Python] [ pypi-link ]] [ python-badge ]
66![ [ DOI] [ doi-link ]] [ doi-badge ]
77![ [ Build Status] [ build-link ]] [ build-badge ]
8- ![ [ PyPI ] [ pypi-link ]] [ pypi-badge ]
9- ![ [ Build Status ] [ anaconda-link ]] [ anaconda-badge ]
8+ [ ![ bmipy package version ] [ pypi-badge ]] [ pypi-link ]
9+ [ ![ BMI specification version ] [ bmi-badge ]] [ bmi-link ]
1010
11- [ anaconda-badge ] : https://anaconda.org/conda-forge/bmipy/badges/version.svg
12- [ anaconda-link ] : https://anaconda.org/conda-forge/bmipy
1311[ build-badge ] : https://github.com/csdms/bmi-python/actions/workflows/test.yml/badge.svg
1412[ build-link ] : https://github.com/csdms/bmi-python/actions/workflows/test.yml
1513[ doi-badge ] : https://zenodo.org/badge/179283861.svg
1614[ doi-link ] : https://zenodo.org/badge/latestdoi/179283861
17- [ pypi-badge ] : https://badge.fury.io/py/bmipy.svg
15+ [ bmi-badge ] : https://img.shields.io/badge/BMI_specification-2.0-blue
16+ [ bmi-link ] : https://github.com/csdms/bmi/releases/tag/v2.0
17+ [ pypi-badge ] : https://img.shields.io/pypi/v/bmipy?label=bmipy
1818[ pypi-link ] : https://pypi.org/project/bmipy/
1919[ python-badge ] : https://img.shields.io/pypi/pyversions/bmipy.svg
2020
21+ ## Package and specification versions
22+
23+ Note that a new * bmipy* release does not necessarily change the supported BMI
24+ specification. You can check the package version independently of the interface
25+ specification version:
26+
27+ ``` python
28+ from bmipy import __version__
29+ from bmipy.bmi2_0 import BMI_VERSION
30+
31+ print (__version__ ) # bmipy package version
32+ print (BMI_VERSION ) # Supported BMI specification
33+ ```
34+
2135## Install
2236
2337Install * bmipy* with * pip* ,
@@ -42,7 +56,7 @@ pip install git+https://github.com/csdms/bmi-python.git
4256## Usage
4357
4458``` python
45- from bmipy import Bmi
59+ from bmipy.bmi2_0 import Bmi
4660
4761
4862class MyBmi (Bmi ):
@@ -51,6 +65,10 @@ class MyBmi(Bmi):
5165 # Your implementation goes here
5266```
5367
68+ The ` bmipy.bmi2_0 ` module explicitly selects the BMI 2.0 specification.
69+ The existing ` from bmipy import Bmi ` and ` from bmipy.bmi import Bmi ` imports
70+ remain available for compatibility.
71+
5472A complete sample implementation is given in the
5573< https://github.com/csdms/bmi-example-python >
5674repository.
0 commit comments