From 5fc46d3078b09a41fe560ae471c46857622a4d4a Mon Sep 17 00:00:00 2001 From: Renata Imai Date: Mon, 9 Sep 2024 08:06:01 -0300 Subject: [PATCH] Update link_types.py --- aequilibrae/project/network/link_types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aequilibrae/project/network/link_types.py b/aequilibrae/project/network/link_types.py index df3f91140..715211056 100644 --- a/aequilibrae/project/network/link_types.py +++ b/aequilibrae/project/network/link_types.py @@ -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"""