Skip to content

CHORE: Delete deprecation#7674

Draft
Samuelopez-ansys wants to merge 70 commits into
mainfrom
chore/delete_deprecation
Draft

CHORE: Delete deprecation#7674
Samuelopez-ansys wants to merge 70 commits into
mainfrom
chore/delete_deprecation

Conversation

@Samuelopez-ansys
Copy link
Copy Markdown
Member

Description

This pull request focuses on removing deprecated arguments and related deprecation mechanisms from several core modules, as well as making minor improvements to type hints and attribute usage. The changes simplify the codebase by eliminating obsolete code paths and cleanup of deprecated decorators, especially around analysis/export methods and schematic creation functions.

Deprecation cleanup and removal of deprecated arguments:

  • Removed the deprecate_argument decorator and all related usages from functions in analysis.py, circuit.py, and desktop.py, eliminating support and warnings for deprecated arguments such as analyze and close_on_exit.

  • Removed the deprecate_enum decorator from constants.py, cleaning up deprecated enumeration handling.

Type hint and signature improvements:

  • Updated function signatures and docstrings in circuit.py for better clarity, including adding optional to parameters and refining type hints for arguments such as ibis_rx_file, tx_buffer_name, and others.

Attribute usage correction:

  • Replaced incorrect usage of is3d with is_3d in configurations.py to match the correct attribute name.

Issue linked

No issue linked

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate tests (unit, integration, system).
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved by the PR if any.
  • I have agreed with the Contributor License Agreement (CLA).

@Samuelopez-ansys Samuelopez-ansys requested a review from a team as a code owner May 20, 2026 14:33
Copy link
Copy Markdown
Collaborator

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

Here are some minor comments. Since some questions might require followup oin this PR, I'm not approving but it could be fine as it is :)

@@ -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.

Comment thread src/ansys/aedt/core/circuit.py Outdated
Comment thread src/ansys/aedt/core/q3d.py
@Samuelopez-ansys Samuelopez-ansys marked this pull request as draft May 21, 2026 09:51
@Samuelopez-ansys Samuelopez-ansys marked this pull request as ready for review May 21, 2026 18:03
@Samuelopez-ansys Samuelopez-ansys marked this pull request as draft May 24, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants