Skip to content

Commit

Permalink
fix: 🐛 fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Aug 11, 2024
1 parent 4b1eb26 commit 20fc7c2
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ parts:
- caption: Real Scenario Simulation
chapters:
- file: filters-maneuver
- file: filters-task-fusion
- file: filters-task-tracking
- file: filters-task-fusion
10 changes: 5 additions & 5 deletions filters-ghk.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions filters-kf-basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x14289a480>"
"<matplotlib.legend.Legend at 0x165ac7e90>"
]
},
"execution_count": 7,
Expand Down Expand Up @@ -267,7 +267,7 @@
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x14286bf80>"
"<matplotlib.legend.Legend at 0x165bcede0>"
]
},
"execution_count": 8,
Expand Down Expand Up @@ -318,7 +318,7 @@
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x1334856a0>"
"<matplotlib.legend.Legend at 0x165c40110>"
]
},
"execution_count": 9,
Expand Down Expand Up @@ -362,7 +362,7 @@
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x142a2f320>"
"<matplotlib.legend.Legend at 0x165ce4440>"
]
},
"execution_count": 10,
Expand Down Expand Up @@ -413,7 +413,7 @@
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x142abab10>"
"<matplotlib.legend.Legend at 0x165d18b90>"
]
},
"execution_count": 11,
Expand Down
10 changes: 5 additions & 5 deletions filters-kf-design.ipynb

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions filters-kf-plus.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0x12fbd0170>]"
"[<matplotlib.lines.Line2D at 0x132ecf7d0>]"
]
},
"execution_count": 9,
Expand Down Expand Up @@ -581,14 +581,14 @@
"text": [
"<>:56: SyntaxWarning: invalid escape sequence '\\s'\n",
"<>:56: SyntaxWarning: invalid escape sequence '\\s'\n",
"/var/folders/py/n14256yd5r5ddms88x9bvsv40000gn/T/ipykernel_53947/1304617523.py:56: SyntaxWarning: invalid escape sequence '\\s'\n",
" ax.plot(results - ps, c=\"k\", linestyle=\":\", lw=1, label=\"1$\\sigma$\")\n"
"/var/folders/py/n14256yd5r5ddms88x9bvsv40000gn/T/ipykernel_80986/2921653772.py:56: SyntaxWarning: invalid escape sequence '\\s'\n",
" ax.plot(results - ps, c='k', linestyle=':', lw=1, label='1$\\sigma$')\n"
]
},
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x1383fbfb0>"
"<matplotlib.legend.Legend at 0x13343c980>"
]
},
"execution_count": 17,
Expand Down
10 changes: 5 additions & 5 deletions filters-maneuver.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions filters-smoothers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"output_type": "stream",
"text": [
"standard deviation fixed-lag: 2.616\n",
"standard deviation kalman: 3.562\n"
"standard deviation kalman: 2.616\n"
]
},
{
Expand Down Expand Up @@ -198,8 +198,8 @@
"ax.plot(x_smooth, label='FLS')\n",
"ax.plot(kf_x[:, 0], label='KF', ls='--')\n",
"ax.legend(loc=4)\n",
"print('standard deviation fixed-lag: {:.3f}'.format(np.mean(fls_res)))\n",
"print('standard deviation kalman: {:.3f}'.format(np.mean(kf_res)))\n",
"print(f'standard deviation fixed-lag: {np.mean(fls_res):.3f}')\n",
"print(f'standard deviation kalman: {np.mean(fls_res):.3f}')\n",
"\n",
"# plt.savefig(\"../images/smoother-fls.png\")"
]
Expand Down
24 changes: 12 additions & 12 deletions filters-task-fusion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -47,7 +47,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -77,7 +77,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -112,16 +112,16 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x14eaede50>"
"<matplotlib.legend.Legend at 0x13efae3c0>"
]
},
"execution_count": 5,
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -158,16 +158,16 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x14ed5b080>"
"<matplotlib.legend.Legend at 0x13ed3e0c0>"
]
},
"execution_count": 6,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -216,7 +216,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -266,7 +266,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 16,
"metadata": {},
"outputs": [
{
Expand Down
16 changes: 8 additions & 8 deletions filters-task-tracking.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plots/plot_gh.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def plot_ghf(ax, data, filt, x0, vary_obj='data'):
if x0:
data = prepend_x0(x0, data)
rng = range(len(data) + 1)
estimates, predictions = filt.batch_filt(data, save_preds=True)
estimates, predictions = filt.batch_filter(data, save_preds=True)

label_printed = {'dx': f' by dx={filt.dx}', 'g': f' by g={filt.g}', 'data': ''}

Expand Down

0 comments on commit 20fc7c2

Please # to comment.