Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
63 changes: 15 additions & 48 deletions src/ansys/aedt/core/application/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import tempfile
import time
from typing import TYPE_CHECKING
import warnings

from ansys.aedt.core.application.design import Design
from ansys.aedt.core.application.job_manager import update_hpc_option
Expand All @@ -47,7 +46,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 @@ -670,13 +668,11 @@ def list_of_variations(self, setup: str = None, sweep: str = None) -> list[str]:
if not setup and ":" in self.nominal_sweep:
setup = self.nominal_adaptive.split(":")[0].strip()
elif not setup:
self.logger.warning("No Setup defined.")
return False
raise ValueError("No Setup defined.")
if not sweep and ":" in self.nominal_sweep:
sweep = self.nominal_adaptive.split(":")[1].strip()
elif not sweep:
self.logger.warning("No Sweep defined.")
return False
raise ValueError("No Sweep defined.")
if (
self.solution_type == "HFSS3DLayout"
or self.solution_type == "HFSS 3D Layout Design"
Expand All @@ -693,13 +689,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 +706,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 +757,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 Expand Up @@ -1129,7 +1116,7 @@ def export_parametric_results(self, sweep: str, output_file: str, export_units:
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.

References
----------
Expand Down Expand Up @@ -1267,7 +1254,7 @@ def delete_setup(self, name: str) -> bool:
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.

References
----------
Expand All @@ -1289,7 +1276,7 @@ def delete_setup(self, name: str) -> bool:
if s.name == name:
self._setups.remove(s)
return True
return False
raise ValueError(f"Setup '{name}' not found.")

@pyaedt_function_handler()
def _get_setup(self, name: str):
Expand Down Expand Up @@ -1368,7 +1355,7 @@ def create_output_variable(
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.

References
----------
Expand Down Expand Up @@ -1582,7 +1569,7 @@ def analyze(
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.

References
----------
Expand Down Expand Up @@ -1624,7 +1611,7 @@ def set_hpc_from_file(self, acf_file: str | Path = None, configuration_name: str
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.
"""
if not acf_file and not configuration_name:
raise AEDTRuntimeError("No custom ACF file or configuration name provided.")
Expand Down Expand Up @@ -1677,7 +1664,7 @@ def set_custom_hpc_options(
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.
"""
config_name = "pyaedt_config"
source_name = os.path.join(self.pyaedt_dir, "misc", "pyaedt_local_config.acf")
Expand Down Expand Up @@ -1795,7 +1782,7 @@ def analyze_setup(
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.

References
----------
Expand Down Expand Up @@ -1961,7 +1948,7 @@ def solve_in_batch(
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.
"""
import subprocess # nosec

Expand Down Expand Up @@ -2332,7 +2319,7 @@ def change_properties(
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.

References
----------
Expand Down Expand Up @@ -2397,7 +2384,7 @@ def change_property(
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.

References
----------
Expand Down Expand Up @@ -2443,8 +2430,7 @@ def change_property(
]
)
else:
self.logger.error("Wrong Property Value")
return False
raise ValueError(f"Wrong property value for '{property_name}'.")
self.logger.info(f"Property {property_name} changed correctly.")
return True

Expand All @@ -2463,7 +2449,7 @@ def apply_solved_variation(
Returns
-------
bool
``True`` when successful, ``False`` when failed.
``True`` when successful.

References
----------
Expand Down Expand Up @@ -2671,25 +2657,6 @@ def variations(self, setup_sweep: str, output_as_dict: bool = False) -> list[lis
families.append(family_list)
return families

@pyaedt_function_handler()
def get_independent_nominal_values(self) -> dict: # pragma: no cover
"""Retrieve variations for a given setup.

.. deprecated:: 0.22.0
Use :func:`nominal_variation` method instead.

Returns
-------
dict
Dictionary of independent nominal variations with values.
"""
warnings.warn(
"Usage of get_independent_nominal_values is deprecated. Use nominal_variation instead.",
DeprecationWarning,
stacklevel=2,
)
return self.nominal_variation(dependent_params=False)

@pyaedt_function_handler()
def nominal_variation(self, dependent_params: bool = True, expressions: bool = False) -> dict:
"""Retrieve variations for a given setup.
Expand Down
7 changes: 2 additions & 5 deletions src/ansys/aedt/core/application/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ def remove_all_unused_definitions(self) -> bool:
return True

@pyaedt_function_handler()
def get_profile(self, name: str = None) -> Profiles:
def get_profile(self, name: str = None) -> Profiles | None:
"""Get profile information.

Parameters
Expand Down Expand Up @@ -1457,7 +1457,7 @@ def get_profile(self, name: str = None) -> Profiles:
return None
else: # pragma: no cover
self.logger.error("Profile can not be obtained.")
return False
return None

@pyaedt_function_handler()
def get_oo_name(self, aedt_object: object, object_name: str = None) -> list[str]:
Expand Down 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
Loading
Loading