Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
teubert committed Jul 5, 2024
1 parent 60e637f commit db46efe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/02_param_est.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
"def AME(m, keys):\n",
" error = 0\n",
" for key in keys:\n",
" error += abs(m[key] - true_Values.parameters[key])\n",
" error += abs(m[key] - true_Values[key])\n",
" return error"
]
},
Expand Down
4 changes: 2 additions & 2 deletions examples/07_State_Estimation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
"metadata": {},
"outputs": [],
"source": [
"print('Initial thrower height:', m.parameters['thrower_height'])\n",
"print('Initial speed:', m.parameters['throwing_speed'])"
"print('Initial thrower height:', m['thrower_height'])\n",
"print('Initial speed:', m['throwing_speed'])"
]
},
{
Expand Down

0 comments on commit db46efe

Please sign in to comment.