You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-12Lines changed: 23 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,21 @@ Add the following to your `requirements.txt`, or run
21
21
22
22
stochastic-arrow
23
23
24
+
**NOTE:** If upgrading from a version older than 1.0.0, check if the [`arrow`](https://github.com/arrow-py/arrow) datetime package is installed. If so, uninstall `arrow` before upgrading `stochastic-arrow`, then reinstall `arrow`.
25
+
26
+
> pip show arrow
27
+
> pip uninstall arrow
28
+
> pip install stochastic-arrow
29
+
> pip install arrow
30
+
24
31
## Usage
25
32
26
-
The `arrow` library presents a single class as an interface,
33
+
The `stochastic_arrow` library presents a single class as an interface,
27
34
`StochasticSystem`, which operates on a set of reactions (encoded as a `numpy`
28
35
matrix of stoichiometrix coefficients) and associated reaction rates:
29
36
30
37
```python
31
-
fromarrowimport StochasticSystem
38
+
fromstochastic_arrowimport StochasticSystem
32
39
import numpy as np
33
40
34
41
# Each row is a reaction and each column is a molecular species (or other
@@ -79,14 +86,14 @@ derived from the list of events and the stoichiometric matrix, along with the in
79
86
state. `reenact_events` will do this for you:
80
87
81
88
```python
82
-
fromarrowimport reenact_events
89
+
fromstochastic_arrowimport reenact_events
83
90
84
-
history = reenact_events(stoichiometry, result['events'], state)
91
+
history = reenact_events(stoichiometric_matrix, result['events'], state)
85
92
```
86
93
87
94
## Testing
88
95
89
-
`arrow` uses [pytest](https://docs.pytest.org/en/latest/). To test it:
96
+
`stochastic_arrow` uses [pytest](https://docs.pytest.org/en/latest/). To test it:
90
97
91
98
> make clean compile
92
99
> pytest
@@ -95,26 +102,30 @@ history = reenact_events(stoichiometry, result['events'], state)
95
102
96
103
There are more command line features in test_arrow:
* Rename module to `stochastic_arrow` to avoid name conflict (Issue #51). **All users must update their import statements to use `stochastic_arrow` instead of `arrow`.**
128
+
118
129
### Version 0.5.2
119
130
120
131
* Update to Cython 0.29.34. (Cython 3.0.0 is now in beta.)
0 commit comments