Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ PyAEDT remains compatible with IronPython and can be still used in the AEDT Fram

PyAEDT has different compatibility requirements based on its version. Below is an overview of the compatibility matrix between PyAEDT, Python versions, and AEDT releases:

- PyAEDT Version 0.8.11:
- PyAEDT Version <= 0.8.11:
- Python Compatibility:
- Compatible with IronPython (Python 2.7).
- Compatible with Python 3.7 and versions up to Python 3.11.
Expand Down
2 changes: 1 addition & 1 deletion doc/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Location of our `styles`
StylesPath = "styles"

# The options are `suggestion`, `warning`, or `error` (defaults to warning).
# The options are `suggestion`, `warning`, or `error` (defaults to "warning").
MinAlertLevel = warning

# By default, `code` and `tt` are ignored.
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/8019.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update typo and ascii compatibility
8 changes: 4 additions & 4 deletions doc/source/Getting_started/Installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Finally, in the Python console, run the following commands:

.. code::

add_pyaedt_to_aedt(rpath_to_aedtlib", skip_version_manager=True)
add_pyaedt_to_aedt(r"path_to_aedtlib", skip_version_manager=True)

.. note::
If you created your own virtual environment and you are managing a centralized installation of pyAEDT,
Expand Down Expand Up @@ -292,16 +292,16 @@ Finally, in the Python console, run the following commands:

.. code::

from ansys.aedt.core.extensions.installer.pyaedt_installer import add_pyaedt_to_aedt
add_pyaedt_to_aedt(rpath_to_aedtlib")
from ansys.aedt.core.extensions.installer.pyaedt_installer import add_pyaedt_to_aedt
add_pyaedt_to_aedt(r"path_to_aedtlib")

- Replace "your_aedt_version" with the version of AEDT you are using (for example "2026.1").
- Replace "path_to_aedtlib" with the full path of your PersonalLib or syslib as specified in AEDT, depending if you want to install the PyAEDT icons at user level or application level.
- You can skip the installation of the version manager by specifying the extra argument skip_version_manager=True:

.. code::

add_pyaedt_to_aedt(rpath_to_aedtlib", skip_version_manager=True)
add_pyaedt_to_aedt(r"path_to_aedtlib", skip_version_manager=True)


Using uv to manage virtual environments
Expand Down
12 changes: 4 additions & 8 deletions doc/source/Getting_started/Troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ Error installing PyAEDT panels in AEDT
Sometimes, the PyAEDT installer may fail when adding panels to AEDT.

This is typically caused by insufficient write permissions to your PersonalLib directory.

.. image:: ../Resources/toolkit_manager_3.png
:width: 800
:alt: PyAEDT toolkit manager 3

If the virtual environment was successfully created, you can manually register the toolkit panels using the CLI command after activating it:

.. code:: bash
Expand All @@ -76,9 +71,9 @@ Alternatively, you can use the Python API directly:

.. code:: python

from ansys.aedt.core.extensions.installer.pyaedt_installer import add_pyaedt_to_aedt
from ansys.aedt.core.extensions.installer.pyaedt_installer import add_pyaedt_to_aedt

add_pyaedt_to_aedt("path_to_personalib")
add_pyaedt_to_aedt("path_to_personalib")

If the issue persists, try installing all required dependencies, including the optional components, by running the following command:

Expand All @@ -87,6 +82,7 @@ If the issue persists, try installing all required dependencies, including the o
uv pip install pyaedt[all]

Or if you prefer to use pip:

.. code:: bash

pip install pyaedt[all]
Expand Down Expand Up @@ -284,7 +280,7 @@ If you encounter such issue, you can try patching it by importing PyAEDT or PyED

Extensions and panels
---------------------
If you update PyAEDT from version **≤ 0.18.0 to a newer version**, you may need to recreate the virtual environment.
If you update PyAEDT from a version below or equal to **0.18.0 to a newer version**, you may need to recreate the virtual environment.

The management of extensions in AEDT has changed. Previously, extensions were copied to the _PersonalLib_ folder, which led to inconsistencies when updating PyAEDT extensions. This was because old extensions were not replaced until panels were reset, at which point the extension were copied from the virtual environment back into the _PersonalLib_ folder. Now, Extensions are loaded directly from the virtual environment, ensuring they remain up to date when PyAEDT is updated.

Expand Down
4 changes: 2 additions & 2 deletions src/ansys/aedt/core/extensions/hfss/fresnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ def validate_even_and_divides_90(
values : Sequence[float]
Input angles (degrees), possibly unsorted and with out-of-range values.
float_precision : float, optional
Tolerance used for close to integer multiple checks.
Tolerance used for "close to integer multiple" checks.
min_step_possible : float, optional
Minimum step allowed during the step search.

Expand Down Expand Up @@ -1117,7 +1117,7 @@ def validate_even_and_divides_90(

if k_sel.size > 0:
# Require first integer index < 2 and successive increments < 2
# (equivalent to exactly one step apart with tolerance logic)
# (equivalent to "exactly one step apart" with tolerance logic)
diffs = np.diff(k_sel)
if (k_sel[0] < 2) and np.all(diffs < 2):
step = step_check
Expand Down