Skip to content

Commit 8e41b55

Browse files
committed
Fix some typos
1 parent ecc1476 commit 8e41b55

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ References
104104

105105
.. [RN17] C. Rackauckas, Q. Nie: Adaptive methods for stochastic differential equations via natural embeddings and rejection sampling with memory, Discrete Cont. Dyn.-B 22, pp. 2731–2761 (2017), `10.3934/dcdsb.2017133 <http://dx.doi.org/10.3934/dcdsb.2017133>`_.
106106
107-
.. [R10] A. Rößler, Runge–Kutta methods for the strong approximation of solutions of stochastic differential equations, SIAM J. Numer. Anal. 48, pp. 922–952 (2010) `10.1137/09076636X <http://dx.doi.org/10.1137/09076636X>`_.
107+
.. [R10] A. Rößler, Runge–Kutta methods for the strong approximation of solutions of stochastic differential equations, SIAM J. Numerical Anal. 48, pp. 922–952 (2010) `10.1137/09076636X <http://dx.doi.org/10.1137/09076636X>`_.
108108
109109
.. _JiTCODE: http://github.com/neurophysik/jitcode
110110

jitcsde/_jitcsde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class jitcsde(jitcxde):
6262
6363
* A SymEngine function object used in `f_sym` to represent the function call. If you want to use any JiTCSDE features that need the derivative, this must have a properly defined `f_diff` method with the derivative being another callback function (or constant).
6464
* The Python function to be called. This function will receive the state array (`y`) as the first argument. All further arguments are whatever you use as arguments of the SymEngine function in `f_sym`. These can be any expression that you might use in the definition of the derivative and contain, e.g., dynamical variables, time, control parameters, and helpers. The only restriction is that the arguments are floats (and not vectors or similar). The return value must also be a float (or something castable to float). It is your responsibility to ensure that this function adheres to these criteria, is deterministic and sufficiently smooth with respect its arguments; expect nasty errors otherwise.
65-
* The number of arguments, **excluding** the state array as mandatory first argument. This means if you have a variadic Python function, you cannot just call it with different numbers of arguments in `f_sym`, but you have to define separate callbacks for each of numer of arguments.
65+
* The number of arguments, **excluding** the state array as mandatory first argument. This means if you have a variadic Python function, you cannot just call it with different numbers of arguments in `f_sym`, but you have to define separate callbacks for each of number of arguments.
6666
6767
See `this example <https://github.com/neurophysik/jitcdde/blob/master/examples/sunflower_callback.py>`_ (for JiTCDDE) for how to use this.
6868

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,7 @@ combine-as-imports = true
100100
known-local-folder = [ "jitcsde" ]
101101
known-first-party = [ "jitcxde_common" ]
102102
lines-after-imports = 2
103+
104+
[tool.typos.default.extend-words]
105+
# short for Stratonovich used in various names
106+
strat = "strat"

tests/kmc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def KMC(Xs, h, kmax=4, nbins=100):
4848
Max = max(Xs) + (max(Xs)-min(Xs))/nbins*0.5
4949
# bin borders
5050
X_bins = np.linspace(Min,Max,nbins+1)
51-
# intialise results with middles of bins:
51+
# initialise results with middles of bins:
5252
results = [(X_bins[1:]+X_bins[:-1])/2]
5353

5454
def Bin(value):

tests/test_jitcsde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_numpy_rng(self):
4747
self.SDE.compile_C(numpy_rng=True,extra_compile_args=compile_args)
4848
self.test_default()
4949

50-
def test_reproducability(self):
50+
def test_reproducibility(self):
5151
self.test_default()
5252

5353
def test_Python_core(self):

tests/test_jumps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_default(self):
4646
self.SDE.set_seed(42)
4747
self.SDE.set_initial_value(initial_value,0.0)
4848

49-
def test_reproducability(self):
49+
def test_reproducibility(self):
5050
self.test_default()
5151

5252
def test_Python_core(self):

0 commit comments

Comments
 (0)