File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/ansys/dpf/core/operators Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -215,10 +215,11 @@ class Inputs{{capital_class_name}}(_Inputs):
215215 { {#input_pins} }
216216 { {#has_aliases} }
217217 if name in { {{aliases} }}:
218+ warn(DeprecationWarning(f"Operator { {class_name} }: Input name \"{ name} \" is deprecated in favor of \"{ {name} }\"."))
218219 return self.{ {name} }
219220 { {/has_aliases} }
220221 { {/input_pins} }
221- raise AttributeError(f"'{ self.__class__.__name__} ' object has no attribute '{ name} '")
222+ raise AttributeError(f"'{ self.__class__.__name__} ' object has no attribute '{ name} '. ")
222223
223224
224225class Outputs{ {capital_class_name} }(_Outputs):
@@ -278,7 +279,8 @@ class Outputs{{capital_class_name}}(_Outputs):
278279 { {#output_pins} }
279280 { {#has_aliases} }
280281 if name in { {{aliases} }}:
282+ warn(DeprecationWarning(f"Operator { {class_name} }: Output name \"{ name} \" is deprecated in favor of \"{ {name} }\"."))
281283 return self.{ {name} }
282284 { {/has_aliases} }
283285 { {/output_pins} }
284- raise AttributeError(f"'{ self.__class__.__name__} ' object has no attribute '{ name} '")
286+ raise AttributeError(f"'{ self.__class__.__name__} ' object has no attribute '{ name} '. ")
You can’t perform that action at this time.
0 commit comments