Skip to content

Commit 2e692ac

Browse files
committed
combined a couple cells in 1 and 2a notebooks, updated a warning message
1 parent 59ff363 commit 2e692ac

File tree

3 files changed

+11
-25
lines changed

3 files changed

+11
-25
lines changed

examples/1_basic_tutorial.ipynb

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
{
8080
"cell_type": "code",
81-
"execution_count": 3,
81+
"execution_count": null,
8282
"metadata": {},
8383
"outputs": [],
8484
"source": [
@@ -89,15 +89,8 @@
8989
"\n",
9090
"# time step size and time series length in TIME\n",
9191
"dt = 0.01\n",
92-
"duration = 4"
93-
]
94-
},
95-
{
96-
"cell_type": "code",
97-
"execution_count": 4,
98-
"metadata": {},
99-
"outputs": [],
100-
"source": [
92+
"duration = 4\n",
93+
"\n",
10194
"x, x_truth, dxdt_truth, _ = simulate.pi_control(duration=duration, dt=dt, \n",
10295
" noise_type=noise_type, noise_parameters=noise_parameters)"
10396
]

examples/2a_optimizing_parameters_with_dxdt_known.ipynb

Lines changed: 7 additions & 14 deletions
Large diffs are not rendered by default.

pynumdiff/optimize/_optimize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def suggest_method(x, dt, dxdt_truth=None, cutoff_frequency=None):
228228
import cvxpy
229229
methods += [acceleration, jerk, smooth_acceleration]
230230
except ImportError:
231-
warn("CVXPY not installed, skipping velocity, acceleration, jerk, and smooth_acceleration")
231+
warn("CVXPY not installed, skipping acceleration, jerk, and smooth_acceleration")
232232

233233
best_value = float('inf') # core loop
234234
for func in tqdm(methods):

0 commit comments

Comments
 (0)