@@ -892,8 +892,8 @@ def import_model_in_aedt(self):
892
892
``True`` when the model is imported successfully, ``False`` if not imported or model already present.
893
893
894
894
"""
895
-
896
- if [i for i in self ._circuit .modeler .schematic .ocomponent_manager .GetNames () if i in self . _ibis_model . buffers ]:
895
+ names = [ i . name for i in self . _ibis_model . buffers . values ()]
896
+ if [i for i in self ._circuit .modeler .schematic .ocomponent_manager .GetNames () if i in names ]:
897
897
return False
898
898
899
899
if self ._circuit :
@@ -912,22 +912,22 @@ def import_model_in_aedt(self):
912
912
for buffer_item in self ._ibis_model .buffers .values ():
913
913
arg_buffers .append (f"{ buffer_item .short_name } :=" )
914
914
arg_buffers .append ([True , "IbisSingleEnded" ])
915
- model_selector_names = [i .name for i in self ._ibis_model .model_selectors ]
915
+ # model_selector_names = [i.name for i in self._ibis_model.model_selectors]
916
916
arg_components = ["NAME:Components" ]
917
917
for comp_value in self ._ibis_model .components .values ():
918
918
arg_component = [f"NAME:{ comp_value .name } " ]
919
919
for pin in comp_value .pins .values ():
920
920
arg_component .append (f"{ pin .short_name } :=" )
921
- if pin .model not in model_selector_names :
922
- arg_component .append ([False , False ])
923
- else :
924
- arg_component .append ([True , False ])
921
+ # if pin.model not in model_selector_names:
922
+ # arg_component.append([False, False])
923
+ # else:
924
+ arg_component .append ([True , False ])
925
925
for pin in comp_value .differential_pins .values ():
926
926
arg_component .append (f"{ pin .short_name } :=" )
927
- if pin .model not in model_selector_names :
928
- arg_component .append ([False , True ])
929
- else :
930
- arg_component .append ([True , True ])
927
+ # if pin.model not in model_selector_names:
928
+ # arg_component.append([False, True])
929
+ # else:
930
+ arg_component .append ([True , True ])
931
931
arg_components .append (arg_component )
932
932
933
933
args .append (arg_buffers )
@@ -1321,7 +1321,8 @@ def parse_ibis_file(self):
1321
1321
1322
1322
def import_model_in_aedt (self ):
1323
1323
1324
- if [i for i in self ._circuit .modeler .schematic .ocomponent_manager .GetNames () if i in self ._ibis_model .buffers ]:
1324
+ names = [i .name for i in self ._ibis_model .buffers .values ()]
1325
+ if [i for i in self ._circuit .modeler .schematic .ocomponent_manager .GetNames () if i in names ]:
1325
1326
return False
1326
1327
if self ._circuit :
1327
1328
args = [
@@ -1339,22 +1340,22 @@ def import_model_in_aedt(self):
1339
1340
for buffer in self ._ibis_model .buffers :
1340
1341
arg_buffers .append (f"{ self ._ibis_model .buffers [buffer ].short_name } :=" )
1341
1342
arg_buffers .append ([True , "IbisSingleEnded" ])
1342
- model_selector_names = [i .name for i in self ._ibis_model .model_selectors ]
1343
+ # model_selector_names = [i.name for i in self._ibis_model.model_selectors]
1343
1344
arg_components = ["NAME:Components" ]
1344
1345
for component in self ._ibis_model .components :
1345
1346
arg_component = [f"NAME:{ self ._ibis_model .components [component ].name } " ]
1346
1347
for pin in self ._ibis_model .components [component ].pins .values ():
1347
1348
arg_component .append (f"{ pin .short_name } :=" )
1348
- if model_selector_names and pin .model not in model_selector_names :
1349
- arg_component .append ([False , False ])
1350
- else :
1351
- arg_component .append ([True , False ])
1349
+ # if model_selector_names and pin.model not in model_selector_names:
1350
+ # arg_component.append([False, False])
1351
+ # else:
1352
+ arg_component .append ([True , False ])
1352
1353
for pin in self ._ibis_model .components [component ].differential_pins .values ():
1353
1354
arg_component .append (f"{ pin .short_name } :=" )
1354
- if model_selector_names and pin .model not in model_selector_names :
1355
- arg_component .append ([False , True ])
1356
- else :
1357
- arg_component .append ([True , True ])
1355
+ # if model_selector_names and pin.model not in model_selector_names:
1356
+ # arg_component.append([False, True])
1357
+ # else:
1358
+ arg_component .append ([True , True ])
1358
1359
arg_components .append (arg_component )
1359
1360
1360
1361
args .append (arg_buffers )
0 commit comments