1
- bmi-tester: Test Basic Model Interface implementations
2
- ======================================================
3
-
4
- |Build Status | |Documentation Status | |Coverage Status | |Conda Version |
5
- |Conda Downloads |
6
-
7
- About
8
- -----
1
+ [ anaconda-badge ] : https://anaconda.org/conda-forge/bmi-tester/badges/version.svg
2
+ [ anaconda-link ] : https://anaconda.org/conda-forge/bmi-tester
3
+ [ build-badge ] : https://github.com/csdms/bmi-tester/actions/workflows/test.yml/badge.svg
4
+ [ build-link ] : https://github.com/csdms/bmi-tester/actions/workflows/test.yml
5
+ [ coverage-badge ] : https://coveralls.io/repos/github/csdms/bmi-tester/badge.svg
6
+ [ coverage-link ] : https://coveralls.io/github/csdms/bmi-tester
7
+ [ docs-badge ] : https://readthedocs.org/projects/bmi-tester/badge/?version=latest
8
+ [ docs-link ] : https://readthedocs.org/projects/bmi-tester/
9
+ [ pypi-badge ] : https://badge.fury.io/py/bmi-tester.svg
10
+ [ pypi-link ] : https://pypi.org/project/bmi-tester/
11
+ [ python-badge ] : https://img.shields.io/pypi/pyversions/bmi-tester.svg
12
+
13
+ # bmi-tester: Test Basic Model Interface implementations
14
+
15
+ ![ [ Build Status] [ build-link ]] [ build-badge ]
16
+ ![ [ PyPI] [ pypi-link ]] [ pypi-badge ]
17
+ ![ [ Anaconda] [ anaconda-link ]] [ anaconda-badge ]
18
+ ![ [ Python] [ pypi-link ]] [ python-badge ]
19
+ ![ [ Documentation] [ docs-link ]] [ docs-badge ]
20
+ ![ [ Coverage] [ coverage-link ]] [ coverage-badge ]
21
+
22
+ ## About
9
23
10
24
The * bmi-tester* is a command-line utility and Python library for testing
11
25
Basic Model Interface (BMI) implementations.
12
26
13
-
14
- Requirements
15
- ------------
27
+ ## Requirements
16
28
17
29
The * bmi-tester* requires Python 3. Additional dependencies can be found
18
30
in the project's * requirements.txt* file and can be installed using either
@@ -29,95 +41,75 @@ that things are working as they should. These dependencies are listed
29
41
in * requirements-testing.txt* and can all be install with either * pip*
30
42
or * conda* .
31
43
32
-
33
- Installation
34
- ------------
44
+ ## Installation
35
45
36
46
To install, first create a new environment in which the project will be
37
47
installed. This, although not necessary, will isolate the installation
38
48
so that there won't be conflicts with your base * Python* installation.
39
49
This can be done with * conda* as,
40
50
41
- .. code :: bash
51
+ ``` bash
52
+ conda create -n bmi-tester python=3
53
+ conda activate bmi-tester
54
+ ```
42
55
43
- $ conda create -n bmi-tester python=3
44
- $ conda activate bmi-tester
45
-
46
-
47
- Stable Release
48
- ++++++++++++++
56
+ ### Stable Release
49
57
50
58
The * bmi-tester* , and its dependencies, can most easily be installed
51
59
with * conda* ,
52
60
53
- .. code :: bash
61
+ ``` bash
62
+ conda install bmi-tester -c conda-forge
63
+ ```
54
64
55
- $ conda install bmi-tester -c conda-forge
56
-
57
- From Source
58
- +++++++++++
65
+ ### From Source
59
66
60
67
After downloading the * bmi-tester* source code, run the following from
61
68
the project's top-level folder (the one that contains * pyproject.toml* ) to
62
69
install into the current environment,
63
70
64
- .. code :: bash
65
-
66
- $ pip install -e .
71
+ ``` bash
72
+ pip install -e .
73
+ ```
67
74
68
- Usage
69
- -----
75
+ ## Usage
70
76
71
77
You can access the * bmi-tester* from the command line with the * bmi-test*
72
78
command. Use the * --help* option to get a brief description of the
73
79
command line arguments,
74
80
75
- .. code :: bash
76
-
77
- $ bmi-test --help
81
+ ``` bash
82
+ bmi-test --help
83
+ ```
78
84
79
85
The * bmi-test* command takes a single argument, the name of the entry point
80
86
of the class that implements the BMI you would like to test. To demonstrate
81
87
how this works, we will use the * Hydrotrend* model as an example. To install
82
88
the Python BMI for * Hydrotrend* , use * conda* ,
83
89
84
- .. code :: bash
85
-
86
- $ conda install pymt_hydrotrend -c conda-forge
90
+ ``` bash
91
+ conda install pymt_hydrotrend -c conda-forge
92
+ ```
87
93
88
94
Once installed, the following will test the BMI implementation for the
89
95
* Hydrotrend* class,
90
96
91
- .. code :: bash
97
+ ``` bash
98
+ bmi-test pymt_hydrotrend:Hydrotrend
99
+ ```
92
100
93
- $ bmi-test pymt_hydrotrend:Hydrotrend
94
-
95
- The entry point is given as *<model>:<class> *. That is, in Python you would
101
+ The entry point is given as * \< model>:\< class>* . That is, in Python you would
96
102
import the * Hydrotrend* class as,
97
103
98
- .. code :: python
99
-
100
- >> > from pymt_hydrotrend import Hydrotrend
101
-
102
-
103
- Links
104
- -----
105
-
106
- - `Source code <http://github.com/csdms/bmi-tester >`__: The
107
- *bmi-tester * source code repository.
108
- - `Documentation <http://bmi-tester.readthedocs.io/ >`__: User
109
- documentation for *bmi-tester *
110
- - `Get <http://bmi-tester.readthedocs.io/en/latest/getting.html >`__:
111
- Installation instructions
104
+ ``` python
105
+ >> > from pymt_hydrotrend import Hydrotrend
106
+ ```
112
107
108
+ ## Links
113
109
114
- .. |Build Status | image :: https://github.com/csdms/bmi-tester/actions/workflows/test.yml/badge.svg
115
- :target: https://github.com/csdms/bmi-tester/actions/workflows/test.yml
116
- .. |Documentation Status | image :: https://readthedocs.org/projects/bmi-tester/badge/?version=latest
117
- :target: http://bmi-tester.readthedocs.io/en/latest/?badge=latest
118
- .. |Coverage Status | image :: https://coveralls.io/repos/github/csdms/bmi-tester/badge.svg
119
- :target: https://coveralls.io/github/csdms/bmi-tester
120
- .. |Conda Version | image :: https://anaconda.org/conda-forge/bmi-tester/badges/version.svg
121
- :target: https://anaconda.org/conda-forge/bmi-tester
122
- .. |Conda Downloads | image :: https://anaconda.org/conda-forge/bmi-tester/badges/downloads.svg
123
- :target: https://anaconda.org/conda-forge/bmi-tester
110
+ - [ Source code] ( http://github.com/csdms/bmi-tester ) : The
111
+ * bmi-tester* source code repository.
112
+ - [ Documentation] ( http://bmi-tester.readthedocs.io/ ) : User
113
+ documentation for * bmi-tester*
114
+ - [ Get] ( http://bmi-tester.readthedocs.io/en/latest/getting.html ) :
115
+ Installation instructions
0 commit comments