Skip to content

Commit 07ba7e8

Browse files
committed
Handle retro in Specification
1 parent 8c63847 commit 07ba7e8

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/ansys/dpf/core/operator_specification.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,15 @@ def _fill_pins(self, binput, to_fill):
434434
for i_type in range(n_types)
435435
]
436436
pin_aliases = []
437-
for i_alias in range(
438-
self._api.operator_specification_get_pin_num_aliases(self, binput, i_pin)
439-
):
440-
pin_aliases.append(
441-
self._api.operator_specification_get_pin_alias(self, binput, i_pin, i_alias)
442-
)
437+
if server_meet_version("10.0", self._server):
438+
for i_alias in range(
439+
self._api.operator_specification_get_pin_num_aliases(self, binput, i_pin)
440+
):
441+
pin_aliases.append(
442+
self._api.operator_specification_get_pin_alias(
443+
self, binput, i_pin, i_alias
444+
)
445+
)
443446
pin_derived_class_type_name = ""
444447
if server_meet_version("7.0", self._server) and hasattr(
445448
self._api, "operator_specification_get_pin_derived_class_type_name"

0 commit comments

Comments
 (0)