equal
deleted
inserted
replaced
87 |
87 |
88 cls = EtherCATInfoParser.GetElementClass("DeviceType") |
88 cls = EtherCATInfoParser.GetElementClass("DeviceType") |
89 if cls: |
89 if cls: |
90 |
90 |
91 profile_numbers_xpath = EtherCATInfo_XPath("Profile/ProfileNo") |
91 profile_numbers_xpath = EtherCATInfo_XPath("Profile/ProfileNo") |
|
92 |
92 def GetProfileNumbers(self): |
93 def GetProfileNumbers(self): |
93 return [number.text for number in profile_numbers_xpath(self)] |
94 return [number.text for number in profile_numbers_xpath(self)] |
94 setattr(cls, "GetProfileNumbers", GetProfileNumbers) |
95 setattr(cls, "GetProfileNumbers", GetProfileNumbers) |
95 |
96 |
96 def getCoE(self): |
97 def getCoE(self): |
207 def GetModulesExtraParamsFilePath(self): |
208 def GetModulesExtraParamsFilePath(self): |
208 return os.path.join(self.Path, "modules_extra_params.cfg") |
209 return os.path.join(self.Path, "modules_extra_params.cfg") |
209 |
210 |
210 groups_xpath = EtherCATInfo_XPath("Descriptions/Groups/Group") |
211 groups_xpath = EtherCATInfo_XPath("Descriptions/Groups/Group") |
211 devices_xpath = EtherCATInfo_XPath("Descriptions/Devices/Device") |
212 devices_xpath = EtherCATInfo_XPath("Descriptions/Devices/Device") |
|
213 |
212 def LoadModules(self): |
214 def LoadModules(self): |
213 self.Library = {} |
215 self.Library = {} |
214 |
216 |
215 files = os.listdir(self.Path) |
217 files = os.listdir(self.Path) |
216 for file in files: |
218 for file in files: |