Skip to content

Commit 68b710b

Browse files
committed
reafactor examples to use lists as inputs
1 parent ff4ed5f commit 68b710b

4 files changed

Lines changed: 39 additions & 30 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ The following example demonstrates a simple use of the package. For more compreh
3939
from odrpack import odr_fit
4040
import numpy as np
4141

42-
xdata = np.array([0.982, 1.998, 4.978, 6.01])
43-
ydata = np.array([2.7, 7.4, 148.0, 403.0])
42+
xdata = [0.982, 1.998, 4.978, 6.01]
43+
ydata = [2.7, 7.4, 148.0, 403.0]
4444

45-
beta0 = np.array([2.0, 0.5])
46-
bounds = (np.array([0.0, 0.0]), np.array([10.0, 0.9]))
45+
beta0 = [2.0, 0.5]
46+
bounds = ([0.0, 0.0], [10.0, 0.9])
4747

4848
def f(x: np.ndarray, beta: np.ndarray) -> np.ndarray:
4949
"Model function."

0 commit comments

Comments
 (0)