Skip to content
Draft
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
a060e68
CHORE: remove deprecated enumeration classes from constants.py
May 20, 2026
158adbb
CHORE: remove deprecated analyze argument from export functions
May 20, 2026
878ea30
CHORE: remove deprecated analyze argument from export functions
May 20, 2026
c2ec4f8
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] May 20, 2026
687f3be
chore: adding changelog file 7674.maintenance.md [dependabot-skip]
pyansys-ci-bot May 20, 2026
87d4c39
chore: update type hints for assignment parameter in multiple functions
May 20, 2026
0326cab
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] May 20, 2026
4b09e43
fix deprecated argument
May 20, 2026
163b294
Merge branch 'main' into chore/delete_deprecation
May 20, 2026
504a2b7
Merge branch 'main' into chore/delete_deprecation
Samuelopez-ansys May 20, 2026
b1190f6
CHORE: simplify use_convolution parameter by removing None type hint
May 21, 2026
bae5a97
Remove all deprecated methods and properties
May 21, 2026
9ec7dd2
fix: correct docstring formatting in job_status method
May 21, 2026
6660000
fix: raise ImportError for missing pandas instead of logging error
May 21, 2026
54729dc
fix: update export_netlist_from_schematic method to raise exceptions …
May 21, 2026
a3c5219
fix: raise ValueError for invalid port_selector in get_source_pin_nam…
May 21, 2026
86c56af
fix: raise exceptions for invalid input file and ports in assign_volt…
May 21, 2026
b4b9eaa
fix: raise exceptions for invalid input file and improve error handli…
May 21, 2026
4efd6f1
fix: raise AEDTRuntimeError for missing component name in create_ibis…
May 21, 2026
b0905d7
fix: improve error handling in import_table and delete_imported_data …
May 21, 2026
2d5e706
fix: raise AEDTRuntimeError for failed port creation and update in ed…
May 21, 2026
a6cd567
fix: raise AEDTRuntimeError for failed port creation and update in ed…
May 21, 2026
6052a87
fix: add validation to prevent duplicate ports in create_coax_port me…
May 21, 2026
380685b
fix: replace RuntimeError with AEDTRuntimeError for port creation and…
May 21, 2026
0262c61
fix: raise ValueError for invalid CAD format in import methods
May 21, 2026
f5ae3da
fix: raise ValueError for invalid interpolation algorithm in edit_cos…
May 21, 2026
a7bf06b
fix: improve error handling and raise AEDTRuntimeError for various fa…
May 21, 2026
4afff4a
fix: enhance error handling in show_extent method and update test cases
May 21, 2026
aadb425
fix: improve error handling in import methods and update test cases
May 21, 2026
cb3fc82
fix: update return types and improve error handling in sweep creation…
May 21, 2026
5c34ee3
fix: update return type and improve error handling in create_single_p…
May 21, 2026
0c7c7d2
fix: update return type and raise AEDTRuntimeError in set_differentia…
May 21, 2026
9e17422
fix: update return types and improve error handling in export methods
May 21, 2026
7506cba
fix: update type hints and improve error handling in HFSS methods
May 21, 2026
67b5a18
fix: update parse_hdm_file return type and improve error handling
May 21, 2026
c01845f
fix: update return types and improve type handling in HFSS methods
May 21, 2026
1246b3c
fix: replace error logging with exceptions for better error handling …
May 21, 2026
a407a48
Merge branch 'main' into chore/delete_deprecation
May 21, 2026
3d96aac
fix: replace error logging with exceptions for CSV parsing failure in…
May 21, 2026
821a6f5
fix: replace error logging with exceptions for better error handling …
May 21, 2026
37b3fc2
fix: replace error logging with exceptions for input validation in 2D…
May 21, 2026
006c6ae
fix: replace return False with exceptions for fan and PCB creation fa…
May 21, 2026
42324c0
fix: replace return False with exceptions for fan and PCB creation fa…
May 21, 2026
e73d827
fix: replace return False with exceptions for error handling in PCB m…
May 21, 2026
3825cc7
fix: raise ValueError for missing waveguide dimensions in get_wavegui…
May 21, 2026
a43c29c
fix: replace error logging with exceptions for invalid project names …
May 21, 2026
99dfdce
fix: replace error logging with exceptions for invalid project names …
May 21, 2026
fabf796
fix: replace error logging with exceptions for pin connection failure…
May 21, 2026
a3b9d79
fix: replace error logging with exceptions for invalid inputs in sche…
May 21, 2026
24c569d
Test if 2026R1 fixes old bugs
May 21, 2026
5da8e8e
fix: replace boolean return values with exceptions for connection fai…
May 21, 2026
0072fc9
fix: replace boolean return values with exceptions for winding assign…
May 21, 2026
4184c05
fix: raise exceptions for invalid clearance application on non-compon…
May 21, 2026
aff1fb2
fix: replace boolean return values with exceptions for undefined setu…
May 21, 2026
da16ab4
fix: replace boolean return values with exceptions for invalid inputs…
May 21, 2026
21c5720
fix: replace boolean return values with exceptions for invalid inputs…
May 21, 2026
05857b7
fix: replace boolean return values with exceptions for failure cases …
May 21, 2026
f701f2a
Merge branch 'main' into chore/delete_deprecation
May 21, 2026
9182c4f
fix: replace boolean return values with exceptions for error handling…
May 21, 2026
bdefebf
FIX UT
May 21, 2026
4b93f0d
test: add exception handling for assign_2way_coupling in setup creation
May 22, 2026
f59ce9b
fix: update return types to improve error handling in design and farf…
May 22, 2026
b709590
fix: improve error handling in modeler_3d by raising exceptions for c…
May 22, 2026
99584c7
fix: update model property references to improve clarity and consistency
May 22, 2026
0a25e07
fix: update object existence checks in 3D primitive creation functions
May 22, 2026
e2a2362
REFACTOR(report/common): Avoid return false and raise instead
SMoraisAnsys May 22, 2026
ce148b4
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] May 22, 2026
b2f0134
REFACTOR(report/common): Avoid return false and raise instead
SMoraisAnsys May 22, 2026
629612b
REFACTOR: Update changes in b2f0134989d7 and add fixes
SMoraisAnsys May 22, 2026
0211e4e
Merge branch 'chore/delete_deprecation' of github.com:ansys/pyaedt in…
SMoraisAnsys May 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/7674.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Delete deprecation
10 changes: 0 additions & 10 deletions src/ansys/aedt/core/application/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
from ansys.aedt.core.generic.constants import Gravity
from ansys.aedt.core.generic.file_utils import generate_unique_name
from ansys.aedt.core.generic.file_utils import open_file
from ansys.aedt.core.generic.general_methods import deprecate_argument
from ansys.aedt.core.generic.general_methods import filter_tuple
from ansys.aedt.core.generic.general_methods import is_linux
from ansys.aedt.core.generic.general_methods import is_windows
Expand Down Expand Up @@ -693,13 +692,8 @@ def list_of_variations(self, setup: str = None, sweep: str = None) -> list[str]:
return [""]

@pyaedt_function_handler()
@deprecate_argument(
arg_name="analyze",
message="The ``analyze`` argument will be removed in future versions. Analyze before exporting results.",
)
def export_results(
self,
analyze: bool = False,
export_folder: str = None,
matrix_name: str = "Original",
matrix_type: str = "S",
Expand All @@ -715,8 +709,6 @@ def export_results(

Parameters
----------
analyze : bool
Whether to analyze before export. Solutions must be present for the design.
export_folder : str, optional
Full path to the project folder. The default is ``None``, in which case the
working directory is used.
Expand Down Expand Up @@ -768,8 +760,6 @@ def export_results(
exported_files = []
if not export_folder:
export_folder = self.working_directory
if analyze:
self.analyze()
# excitations
if self.design_type == "HFSS3DLayout" or self.design_type == "HFSS 3D Layout Design":
excitations = len(self.oexcitation.GetAllPortsList())
Expand Down
3 changes: 0 additions & 3 deletions src/ansys/aedt/core/application/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -2584,9 +2584,6 @@ def autosave_enable(self) -> bool:
def release_desktop(self, close_projects: bool = True, close_desktop: bool = True) -> bool:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we be removing the method and not the "deprecated:: ..." in the docstring ?
Can be performed in another PR were all deprecated mthods (not arguments) are removed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SMoraisAnsys We decided that this method should not be deprecated, historically, many users have it, and it is useful to have it at design level.

"""Release AEDT.

.. deprecated:: 0.19.1
This method is deprecated. Use the ``ansys.aedt.core.desktop.release_desktop()`` method instead.

Parameters
----------
close_projects : bool, optional
Expand Down
51 changes: 8 additions & 43 deletions src/ansys/aedt/core/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
from ansys.aedt.core.generic.file_utils import generate_unique_name
from ansys.aedt.core.generic.file_utils import open_file
from ansys.aedt.core.generic.file_utils import read_configuration_file
from ansys.aedt.core.generic.general_methods import deprecate_argument
from ansys.aedt.core.generic.general_methods import is_linux
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
from ansys.aedt.core.generic.settings import settings
Expand Down Expand Up @@ -1877,10 +1876,6 @@ def create_tdr_schematic_from_snp(
return tdr_probe_names

@pyaedt_function_handler()
@deprecate_argument(
arg_name="analyze",
message="The ``analyze`` argument will be removed in future versions. Analyze before exporting results.",
)
def create_lna_schematic_from_snp(
self,
input_file: str,
Expand All @@ -1889,7 +1884,6 @@ def create_lna_schematic_from_snp(
auto_assign_diff_pairs: bool = False,
separation: str | None = ".",
pattern: list | None = None,
analyze: bool | None = False,
design_name: str | None = "LNA",
) -> tuple[bool, list, list]:
"""Create a schematic from a Touchstone file and automatically set up an LNA analysis.
Expand All @@ -1910,8 +1904,6 @@ def create_lna_schematic_from_snp(
Character to use to separate port names. The default is ``"."``.
pattern : list, optional
Port name pattern. The default is ``["component", "pin", "net"]``.
analyze : bool
Whether to automatically assign differential pairs. The default is ``False``.
design_name : str, optional
New schematic name. The default is ``"LNA"``.

Expand Down Expand Up @@ -1983,15 +1975,9 @@ def create_lna_schematic_from_snp(
break
setup1 = self.create_setup()
setup1.props["SweepDefinition"]["Data"] = f"LINC {start_frequency}GHz {stop_frequency}GHz 1001"
if analyze:
self.analyze()
return True, diff_pairs, comm_pairs

@pyaedt_function_handler()
@deprecate_argument(
arg_name="analyze",
message="The ``analyze`` argument will be removed in future versions. Analyze before exporting results.",
)
def create_ami_schematic_from_snp(
self,
input_file: str,
Expand All @@ -2009,7 +1995,6 @@ def create_ami_schematic_from_snp(
bit_pattern: str | None = None,
unit_interval: str | None = None,
use_convolution: bool | None = True,
analyze: bool | None = True,
design_name: str | None = "AMI",
ibis_rx_file: str | None = None,
create_setup: bool | None = True,
Expand Down Expand Up @@ -2054,8 +2039,6 @@ def create_ami_schematic_from_snp(
use_convolution : bool, optional
Whether to use convolution for the Touchstone file. The default is
``True``. If ``False``, state-space is used.
analyze : bool
Whether to automatically assign differential pairs. The default is ``False``.
design_name : str, optional
New schematic name. The default is ``"LNA"``.
ibis_rx_file : str, optional
Expand Down Expand Up @@ -2086,17 +2069,12 @@ def create_ami_schematic_from_snp(
bit_pattern=bit_pattern,
unit_interval=unit_interval,
use_convolution=use_convolution,
analyze=analyze,
design_name=design_name,
is_ami=True,
create_setup=create_setup,
)

@pyaedt_function_handler()
@deprecate_argument(
arg_name="analyze",
message="The ``analyze`` argument will be removed in future versions. Analyze before exporting results.",
)
def create_ibis_schematic_from_snp(
self,
input_file: str,
Expand All @@ -2114,8 +2092,7 @@ def create_ibis_schematic_from_snp(
differential: bool | None = True,
bit_pattern: str | None = None,
unit_interval: str | None = None,
use_convolution: bool = True,
analyze: bool | None = False,
use_convolution: bool | None = True,
Comment thread
Samuelopez-ansys marked this conversation as resolved.
Outdated
design_name: str | None = "IBIS",
is_ami: bool | None = False,
create_setup: bool | None = True,
Expand Down Expand Up @@ -2161,8 +2138,6 @@ def create_ibis_schematic_from_snp(
use_convolution : bool, optional
Whether to use convolution for the Touchstone file. The default is
``True``. If ``False``, state-space is used.
analyze : bool
Whether to automatically assign differential pairs. The default is ``False``.
design_name : str, optional
New schematic name. The default is ``"IBIS"``.
is_ami : bool, optional
Expand Down Expand Up @@ -2205,20 +2180,15 @@ def create_ibis_schematic_from_snp(
bit_pattern=bit_pattern,
unit_interval=unit_interval,
use_convolution=use_convolution,
analyze=analyze,
is_ami=is_ami,
create_setup=create_setup,
)

@pyaedt_function_handler()
@deprecate_argument(
arg_name="analyze",
message="The ``analyze`` argument will be removed in future versions. Analyze before exporting results.",
)
def create_ibis_schematic_from_pins(
self,
ibis_tx_file,
ibis_rx_file=None,
ibis_tx_file: str,
ibis_rx_file: str | None = None,
tx_buffer_name: str = "",
rx_buffer_name: str = "",
tx_schematic_pins: list | None = None,
Expand All @@ -2234,7 +2204,6 @@ def create_ibis_schematic_from_pins(
bit_pattern: str | None = None,
unit_interval: str | None = None,
use_convolution: bool | None = True,
analyze: bool | None = False,
is_ami: bool | None = False,
create_setup: bool | None = True,
) -> tuple[bool, list, list]:
Expand All @@ -2244,21 +2213,21 @@ def create_ibis_schematic_from_pins(
----------
ibis_tx_file : str
Full path to the IBIS file for transmitters.
ibis_rx_file : str
ibis_rx_file : str, optional
Full path to the IBIS file for receiver.
tx_buffer_name : str
tx_buffer_name : str, optional
Transmission buffer name. It can be a buffer or a ibis pin name.
In this last case the user has to provide also the component_name.
rx_buffer_name : str
rx_buffer_name : str, optional
Receiver buffer name.
tx_schematic_pins : list
tx_schematic_pins : list, optional
Pins to assign to the transmitter IBIS.
rx_schematic_pins : list, optional
Pins to assign to the receiver IBIS.
tx_schematic_differential_pins : list, optional
Reference pins to assign to the transmitter IBIS. This parameter is only used in
a differential configuration.
rx_schematic_differential_pins : list
rx_schematic_differential_pins : list, optional
Reference pins to assign to the receiver IBIS. This parameter is only used
in a differential configuration.
tx_component_name : str, optional
Expand All @@ -2283,8 +2252,6 @@ def create_ibis_schematic_from_pins(
use_convolution : bool, optional
Whether to use convolution for the Touchstone file. The default is
``True``. If ``False``, state-space is used.
analyze : bool
Whether to automatically assign differential pairs. The default is ``False``.
is_ami : bool, optional
Whether the ibis is AMI. The default is ``False``.
create_setup : bool, optional
Expand Down Expand Up @@ -2453,8 +2420,6 @@ def create_ibis_schematic_from_pins(
]
)
setup_ibis.props["OptionName"] = "Nexxim Options"
if analyze:
setup_ibis.analyze()
return True, tx_eye_names, rx_eye_names

@pyaedt_function_handler()
Expand Down
13 changes: 0 additions & 13 deletions src/ansys/aedt/core/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
from ansys.aedt.core.generic.general_methods import _normalize_version_to_string
from ansys.aedt.core.generic.general_methods import active_sessions
from ansys.aedt.core.generic.general_methods import com_active_sessions
from ansys.aedt.core.generic.general_methods import deprecate_argument
from ansys.aedt.core.generic.general_methods import grpc_active_sessions
from ansys.aedt.core.generic.general_methods import inside_desktop_ironpython_console
from ansys.aedt.core.generic.general_methods import is_grpc_session_active
Expand Down Expand Up @@ -1825,11 +1824,6 @@ def __release_and_close_desktop(self, close_projects, close_aedt_app):
return result

@pyaedt_function_handler()
@deprecate_argument(
arg_name="close_on_exit",
message="The ``close_on_exit`` argument will be removed in future versions. "
"Use ``close_desktop`` method to close the desktop.",
)
def release_desktop(self, close_projects: bool | None = True, close_on_exit: bool | None = True) -> bool:
"""Release AEDT.

Expand All @@ -1856,13 +1850,6 @@ def release_desktop(self, close_projects: bool | None = True, close_on_exit: boo
>>> desktop.release_desktop(close_projects=False) # doctest: +SKIP

"""
if close_on_exit:
warnings.warn(
"The `close_on_exit` argument will be removed in future versions. "
"Use `close_desktop` method to close the desktop.",
DeprecationWarning,
)

return self.__release_and_close_desktop(close_projects, close_on_exit)

def close_desktop(self) -> bool:
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/aedt/core/generic/configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ def _update_object_properties(self, name: str, val) -> bool:
if name in self._app.modeler.object_names:
arg = ["NAME:AllTabs", ["NAME:Geometry3DAttributeTab", ["NAME:PropServers", name]]]
arg2 = ["NAME:ChangedProps"]
if self._app.modeler[name].is3d or self._app.design_type in ["Maxwell 2D", "2D Extractor"]:
if self._app.modeler[name].is_3d or self._app.design_type in ["Maxwell 2D", "2D Extractor"]:
if val.get("Material", None):
arg2.append(["NAME:Material", "Value:=", chr(34) + val["Material"] + chr(34)])
if val.get("SolveInside", None):
Expand Down Expand Up @@ -1356,7 +1356,7 @@ def _export_objects_properties(self, dict_out):
dict_out["objects"] = {}
for val in self._app.modeler.objects.values():
dict_out["objects"][val.name] = {}
if self._app.modeler[val.name].is3d or self._app.design_type in ["Maxwell 2D", "2D Extractor"]:
if self._app.modeler[val.name].is_3d or self._app.design_type in ["Maxwell 2D", "2D Extractor"]:
dict_out["objects"][val.name]["Material"] = val.material_name
dict_out["objects"][val.name]["SolveInside"] = val.solve_inside
dict_out["objects"][val.name]["Model"] = val.model
Expand Down
Loading
Loading