Skip to content

Commit

Permalink
Documentation icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pveigadecamargo committed Jun 12, 2024
1 parent e9440ba commit c27e4fa
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from aequilibrae.paths import Graph
from aequilibrae.paths import TrafficAssignment
from aequilibrae.paths.traffic_class import TrafficClass
# sphinx_gallery_thumbnail_path = 'images/assignment_plot.png'

# %%
# We load the example file from the GMNS GitHub repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
# Imports for SF transit graph construction
from aequilibrae.project.database_connection import database_connection
from aequilibrae.transit.transit_graph_builder import TransitGraphBuilder
# sphinx_gallery_thumbnail_path = 'images/hyperpath_bell_n_10_alpha_100d0.png'

# %%
# Let's create an empty project on an arbitrary folder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def plot_results(link_loads):
# we need to take from x/y to lat/long
points = [[x[1], x[0]] for x in eval(points)]
_ = folium.vector_layers.PolyLine(points, tooltip=f"link_id: {rec.link_id}, Flow: {rec.demand_tot:.3f}",
color="red",
color="blue",
weight=factor * rec.demand_tot).add_to(loads_lyr)
long, lat = project.conn.execute("select avg(xmin), avg(ymin) from idx_links_geometry").fetchone()

Expand All @@ -206,7 +206,8 @@ def plot_results(link_loads):
# %%
# Now we can perform a batch computation with an assignment
rc.execute(perform_assignment=True)
rc.get_results().to_pandas()
res = rc.get_results().to_pandas()
res.head()

# %%
# Since we provided a matrix initially we can also perform link loading based on our assignment results.
Expand Down
2 changes: 2 additions & 0 deletions docs/source/examples/other_applications/plot_check_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from os.path import join
from aequilibrae.utils.create_example import create_example
from aequilibrae.paths import TrafficAssignment, TrafficClass
# sphinx_gallery_thumbnail_path = 'images/plot_route_choice_assignment.png'

# %%
# We create an empty project on an arbitrary folder
Expand Down Expand Up @@ -101,3 +102,4 @@
# if we had created our project from OSM, the lines on top of the log would have been
# different to display information on the queries done to the server to obtain the data.
#
# Log image by https://oldschool.runescape.wiki/index.php?curid=66905#
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from os.path import join
from tempfile import gettempdir
from aequilibrae.matrix import AequilibraeMatrix, AequilibraeData
# sphinx_gallery_thumbnail_path = 'images/ipf.png'

# %%
folder = gettempdir()
Expand Down
1 change: 1 addition & 0 deletions docs/source/examples/trip_distribution/plot_skimming.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from tempfile import gettempdir
from os.path import join
from aequilibrae.utils.create_example import create_example
# sphinx_gallery_thumbnail_path = 'images/skims.png'

# %%
# We create the example project inside our temp folder
Expand Down
Binary file added docs/source/images/assignment_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/ipf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/logs_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/skims.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c27e4fa

Please sign in to comment.