6.1.3.2.3. aequilibrae.project.network.Links¶
-
class
aequilibrae.project.network.Links¶ Bases:
objectAccess 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__()¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__()Initialize self.
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
fields()Returns a FieldEditor class instance to edit the Links table fields and their metadata
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_fields()After adding a field one needs to refresh all the fields recognized by the software
save()Attributes
dataReturns all links data as a Pandas dataFrame
sqlQuery sql for retrieving links
-
__init__()¶ Initialize self. See help(type(self)) for accurate signature.
-