Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHORE: 2025R1 compatibility #322

Merged
merged 25 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8c9219b
2025R1 change
Samuelopez-ansys Mar 7, 2025
f61dea3
Replace general_method with file_utils
Samuelopez-ansys Mar 9, 2025
8ab41e0
Bug in 2025R1 for Named Expressions in Q3D
Samuelopez-ansys Mar 9, 2025
0c33d45
Skip analysis in multizone example to save time
Samuelopez-ansys Mar 10, 2025
ead7308
Fix example style
Samuelopez-ansys Mar 10, 2025
74d3b08
Fix MRI example
Samuelopez-ansys Mar 10, 2025
0f3e297
Fix coplanar waveguide example
Samuelopez-ansys Mar 10, 2025
f18fe65
Fix coplanar waveguide example
Samuelopez-ansys Mar 10, 2025
35fb71f
Fix control program
Samuelopez-ansys Mar 10, 2025
6ccc83c
Add new argument
Samuelopez-ansys Mar 10, 2025
8b3dcba
Add new argument
Samuelopez-ansys Mar 10, 2025
7400b66
Expression already has polyline included
Samuelopez-ansys Mar 10, 2025
2c3c319
Expression already has polyline included
Samuelopez-ansys Mar 10, 2025
765949d
Remove deprecated properties
Samuelopez-ansys Mar 10, 2025
609a066
Fix magneto_motive_line.py
Samuelopez-ansys Mar 10, 2025
44be9d8
Fix transient_winding.py
Samuelopez-ansys Mar 10, 2025
3af2c8a
Reduce simulation time
Samuelopez-ansys Mar 10, 2025
628525e
Reduce simulation time
Samuelopez-ansys Mar 10, 2025
1f56444
Fix pm
Samuelopez-ansys Mar 10, 2025
9e43c27
New arguments
Samuelopez-ansys Mar 10, 2025
6c39917
New arguments
Samuelopez-ansys Mar 10, 2025
2dda1a2
Update dependencies
Samuelopez-ansys Mar 11, 2025
5c4d32b
Update dependencies
Samuelopez-ansys Mar 11, 2025
d50ec4a
Revert bug
Samuelopez-ansys Mar 11, 2025
f07364f
new desktop
Samuelopez-ansys Mar 11, 2025
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
4 changes: 2 additions & 2 deletions examples/00_edb/legacy_standalone/GDS_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
# Import the gds and open the edb.

# +
# Select EDB version (change it manually if needed, e.g. "2024.2")
edb_version = "2024.2"
# Select EDB version (change it manually if needed, e.g. "2025.1")
edb_version = "2025.1"
print(f"EDB version: {edb_version}")

edb = pyedb.Edb(gds_out, edbversion=edb_version, technology_file=os.path.join(temp_dir.name, "output.xml"))
Expand Down
4 changes: 2 additions & 2 deletions examples/00_edb/legacy_standalone/Plot_nets.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
# > Note that units are SI.

# +
# Select EDB version (change it manually if needed, e.g. "2024.2")
edb_version = "2024.2"
# Select EDB version (change it manually if needed, e.g. "2025.1")
edb_version = "2025.1"
print(f"EDB version: {edb_version}")

edb = pyedb.Edb(edbpath=targetfolder, edbversion=edb_version)
Expand Down
4 changes: 2 additions & 2 deletions examples/00_edb/legacy_standalone/differential_vias.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
aedb_path = os.path.join(temp_dir.name, "create_via.aedb")
print(f"AEDB file path: {aedb_path}")

# Select EDB version (change it manually if needed, e.g. "2024.2")
edb_version = "2024.2"
# Select EDB version (change it manually if needed, e.g. "2025.1")
edb_version = "2025.1"
print(f"EDB version: {edb_version}")

edb = pyedb.Edb(edbpath=aedb_path, edbversion=edb_version)
Expand Down
4 changes: 2 additions & 2 deletions examples/00_edb/legacy_standalone/edb_to_ipc2581.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
# > Note that length dimensions passed to EDB are in SI units.

# +
# Select EDB version (change it manually if needed, e.g. "2024.2")
edb_version = "2024.2"
# Select EDB version (change it manually if needed, e.g. "2025.1")
edb_version = "2025.1"
print(f"EDB version: {edb_version}")

edb = pyedb.Edb(edbpath=targetfile, edbversion=edb_version)
Expand Down
6 changes: 3 additions & 3 deletions examples/00_edb/legacy_standalone/siwave_dcir.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
if os.path.exists(aedt_file):
os.remove(aedt_file)

# Select EDB version (change it manually if needed, e.g. "2024.2")
edb_version = "2024.2"
# Select EDB version (change it manually if needed, e.g. "2025.1")
edb_version = "2025.1"
print(f"EDB version: {edb_version}")

edb = pyedb.Edb(edbpath=targetfile, edbversion=edb_version)
Expand Down Expand Up @@ -195,7 +195,7 @@
# using the SIwave user interface. This command works on Window OS only.

# +
# siwave = pyedb.Siwave("2024.2")
# siwave = pyedb.Siwave("2025.1")
# siwave.open_project(siwave_file)
# report_file = os.path.join(temp_folder,'Ansys.htm')

Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/dcir.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False
# -

Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/import_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"

# -

Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/import_material.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False

# -
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"

# -

Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/import_ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False

# -
Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/import_setup_ac.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False

# -
Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/import_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False

# -
Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/import_stackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False

# -
Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/pcb_dc_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False

# -
Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/pdn_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False

# -
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
target_aedb = download_file("edb/ANSYS-HSD_V1.aedb", destination=temp_dir.name)
print("Project is located in ", target_aedb)

# Select EDB version (change it manually if needed, e.g. "2024.2")
edb_version = "2024.2"
# Select EDB version (change it manually if needed, e.g. "2025.1")
edb_version = "2025.1"
print(f"EDB version: {edb_version}")

edb = pyedb.Edb(edbpath=target_aedb, edbversion=edb_version)
Expand Down
2 changes: 1 addition & 1 deletion examples/00_edb/use_configuration/serdes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from pyedb import Edb

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False

# -
Expand Down
2 changes: 1 addition & 1 deletion examples/aedt_general/components/component_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# ### Define constants
# Constants help ensure consistency and avoid repetition throughout the example.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
OLD_AEDT_VERSION = "2024.1"
NG_MODE = False # Open AEDT UI when AEDT is launched.

Expand Down
2 changes: 1 addition & 1 deletion examples/aedt_general/components/reuse_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# ### Define constants
# Constants help ensure consistency and avoid repetition throughout the example.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.

# ### Create temporary directory
Expand Down
2 changes: 1 addition & 1 deletion examples/aedt_general/configuration_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.

# ## Create temporary directory
Expand Down
2 changes: 1 addition & 1 deletion examples/aedt_general/modeler/circuit_schematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.

# ## Create temporary directory
Expand Down
2 changes: 1 addition & 1 deletion examples/aedt_general/modeler/coordinate_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open the AEDT UI when it is launched.

# ## Create temporary directory
Expand Down
2 changes: 1 addition & 1 deletion examples/aedt_general/modeler/netlist_to_schematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# ## Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.

# ## Create temporary directory
Expand Down
2 changes: 1 addition & 1 deletion examples/aedt_general/modeler/polyline.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Define constants

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.


Expand Down
2 changes: 1 addition & 1 deletion examples/aedt_general/optimetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.

# ## Create temporary directory
Expand Down
4 changes: 2 additions & 2 deletions examples/aedt_general/report/automatic_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.

# ## Create temporary directory
Expand Down Expand Up @@ -97,7 +97,7 @@
# The following code modifies the trace rendering prior to creating the report.

# +
props = ansys.aedt.core.general_methods.read_json(
props = ansys.aedt.core.generic.file_utils.read_json(
os.path.join(project_path, "Transient_CISPR_Custom.json")
)

Expand Down
2 changes: 1 addition & 1 deletion examples/aedt_general/report/virtual_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# ## Define constants

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NUM_CORES = 4
NG_MODE = False # Open AEDT UI when it is launched.

Expand Down
2 changes: 1 addition & 1 deletion examples/electrothermal/coaxial_hfss_icepak.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NUM_CORES = 4
NG_MODE = False # Open AEDT UI when it is launched.

Expand Down
2 changes: 1 addition & 1 deletion examples/electrothermal/component_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.

# ## Create temporary directory and download files
Expand Down
2 changes: 1 addition & 1 deletion examples/electrothermal/components_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.

# ## Download and open project
Expand Down
2 changes: 1 addition & 1 deletion examples/electrothermal/ecad_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NG_MODE = False # Open AEDT UI when it is launched.

# ## Open project
Expand Down
2 changes: 1 addition & 1 deletion examples/electrothermal/electrothermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NUM_CORES = 4
NG_MODE = True # Open AEDT UI when it is launched.

Expand Down
2 changes: 1 addition & 1 deletion examples/electrothermal/graphic_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NUM_CORES = 4
NG_MODE = False # Do not show the graphical user interface.

Expand Down
2 changes: 1 addition & 1 deletion examples/electrothermal/icepak_circuit_hfss_coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

# Define constants.

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NUM_CORES = 4
NG_MODE = False # Open AEDT UI when it is launched.

Expand Down
2 changes: 1 addition & 1 deletion examples/electrothermal/sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Define constants

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NUM_CORES = 4
NG_MODE = False # Open AEDT UI when it is launched.

Expand Down
6 changes: 3 additions & 3 deletions examples/high_frequency/antenna/5G_antenna_parametrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def points(self):
temp_dir = tempfile.TemporaryDirectory(suffix=".ansys")
aedb_path = os.path.join(temp_dir.name, "linear_array.aedb")

# Select EDB version (change it manually if needed, e.g. "2024.2")
edb_version = "2024.2"
# Select EDB version (change it manually if needed, e.g. "2025.1")
edb_version = "2025.1"
print(f"EDB version: {edb_version}")

# Create an instance of the Edb class.
Expand Down Expand Up @@ -246,7 +246,7 @@ def points(self):
h3d = ansys.aedt.core.Hfss(
projectname="Demo_3DComp",
designname="Linear_Array",
specified_version="2024.2",
specified_version="2025.1",
new_desktop_session=True,
non_graphical=non_graphical,
close_on_exit=True,
Expand Down
4 changes: 2 additions & 2 deletions examples/high_frequency/antenna/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Define constants

AEDT_VERSION = "2024.2"
AEDT_VERSION = "2025.1"
NUM_CORES = 4
NG_MODE = False # Open AEDT UI when it is launched.

Expand Down Expand Up @@ -61,7 +61,7 @@
#
# Read array definition from the JSON file.

dict_in = ansys.aedt.core.general_methods.read_json(
dict_in = ansys.aedt.core.generic.file_utils.read_json(
os.path.join(example_path, "array_simple.json")
)

Expand Down
Loading
Loading