Skip to content

Commit 2377606

Browse files
committed
Make operator_specification_get_pin_num_aliases retro-compatible
1 parent faf577f commit 2377606

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ansys/dpf/gate/operator_specification_grpcapi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def operator_specification_get_pin_type_name(specification, binput, numPin, numT
8484

8585
@staticmethod
8686
def operator_specification_get_pin_num_aliases(specification, binput, numPin):
87+
if not hasattr(specification._internal_obj.map_input_pin_spec[numPin], "aliases"):
88+
return 0
8789
if binput:
8890
return len(specification._internal_obj.map_input_pin_spec[numPin].aliases)
8991
else:

0 commit comments

Comments
 (0)