Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix notebooks #431

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions notebooks/15_flightplanning_tuto.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -259,37 +259,6 @@
"source": [
"heuristic = \"lazy_fuel\"\n",
"\n",
"origin = \"SKCG\"\n",
"destination = \"LFBO\"\n",
"aircraft = \"A388\"\n",
"\n",
"domain_factory = lambda: FlightPlanningDomain(\n",
" origin,\n",
" destination,\n",
" aircraft,\n",
" weather_date=weather_date,\n",
" heuristic_name=heuristic,\n",
" perf_model_name=\"openap\", # a/c performance model\n",
" objective=cost_function,\n",
" fuel_loop=False,\n",
" graph_width=\"normal\",\n",
")\n",
"\n",
"domain = domain_factory()\n",
"\n",
"with Astar(\n",
" heuristic=lambda d, s: d.heuristic(s), domain_factory=domain_factory, parallel=False\n",
") as solver:\n",
" solver.solve()\n",
" domain.custom_rollout(solver=solver)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"origin = \"SKCG\"\n",
"destination = \"LFBO\"\n",
"aircraft = \"A388\"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/maze_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import random
from collections import deque
from typing import Any, Optional, tuple
from typing import Any, Optional

import matplotlib.pyplot as plt
import numpy as np
Expand Down