AequilibraE
0.7.3

Contents:

  • 1. An overview of AequilibraE
  • 2. Getting Started
  • 3. The AequilibraE project
  • 4. Modeling Platform
  • 5. Path computation engine
  • 6. API documentation
    • 6.1. Project Module
      • 6.1.1. aequilibrae.Project
      • 6.1.2. Project components
      • 6.1.3. Project objects
        • 6.1.3.1. aequilibrae.project.Zone
        • 6.1.3.2. Network data
        • 6.1.3.3. Network items
    • 6.2. Parameters Module
    • 6.3. Distribution Module
    • 6.4. Matrix Module
    • 6.5. Paths Module
    • 6.6. Transit Module
    • 6.7. Use examples
  • 7. Workflows
  • 8. Contributing to AequilibraE
  • 9. Roadmap
  • 10. QGIS
AequilibraE
  • Docs »
  • 6. API documentation »
  • 6.1.3.2.3. aequilibrae.project.network.Links
  • View page source

6.1.3.2.3. aequilibrae.project.network.Links¶

class aequilibrae.project.network.Links¶

Bases: aequilibrae.project.basic_table.BasicTable

Access to the API resources to manipulate the links table in the network

from aequilibrae import Project

proj = Project()
proj.open('path/to/project/folder')

all_links = proj.network.links

# We can just get one link in specific
link = all_links.get(4523)

# We can save changes for all links we have edited so far
all_links.save()
__init__()¶

Methods

__init__()

copy_link(link_id)

Creates a copy of a link with a new id

delete(link_id)

Removes the link with link_id from the project

extent()

Queries the extent of thelayer included in the model

get(link_id)

Get a link from the network by its link_id

new()

Creates a new link

refresh()

Refreshes all the links in memory

refresh_connection()

Opens a new database connection to avoid thread conflict

refresh_fields()

After adding a field one needs to refresh all the fields recognized by the software

save()

Attributes

data

Returns all links data as a Pandas dataFrame

fields

Returns a FieldEditor class instance to edit the zones table fields and their metadata

sql

Query sql for retrieving links

__init__()¶
Next Previous

© Copyright 2018, Pedro Camargo.

Built with Sphinx and ❤️ using a custom theme based on Read the Docs.