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

Add property decorator to LinkTypes #571

Merged
merged 1 commit into from
Sep 12, 2024
Merged
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
3 changes: 2 additions & 1 deletion aequilibrae/project/network/link_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ def get_by_name(self, link_type: str) -> LinkType:
if lt.link_type.lower() == link_type.lower():
return lt

@property
def fields(self) -> FieldEditor:
"""Returns a FieldEditor class instance to edit the Link_Types table fields and their metadata"""
return FieldEditor(self.project.project_base_path, "link_types")
return FieldEditor(self.project, "link_types")

def all_types(self) -> dict:
"""Returns a dictionary with all LinkType objects available in the model. link_type_id as key"""
Expand Down