Generic#

PyAEDT has some generic features.

File utils#

The following methods allows to read and parse files.

normalize_path

Normalize path separators.

get_filename_without_extension

Get the filename without its extension.

check_and_download_file

Check if a file is remote.

check_if_path_exists

Check whether a path exists on a local or on a remote machine (for remote sessions only).

check_and_download_folder

Download remote folder.

generate_unique_name

Generate a new name given a root name and optional suffix.

generate_unique_folder_name

Generate a new AEDT folder name given a root name.

generate_unique_project_name

Generate a new AEDT project name given a root name.

recursive_glob

Get a list of files matching a pattern, searching recursively from a start path.

is_project_locked

Check if the AEDT project lock file exists.

remove_project_lock

Check if the AEDT project exists and try to remove the lock file.

open_file

Open a file and return the object.

read_json

Load a JSON file to a dictionary.

read_toml

Read a TOML file and return as a dictionary.

read_csv

Read information from a CSV file and return a list.

read_csv_pandas

Read information from a CSV file and return a list.

write_csv

Write data to a CSV .

read_tab

Read information from a TAB file and return a list.

read_xlsx

Read information from an XLSX file and return a list.

get_dxf_layers

Read a DXF file and return all layer names.

read_component_file

Read the component file and extract variables.

parse_excitation_file

Parse a csv file and convert data in list that can be applied to Hfss and Hfss3dLayout sources.

tech_to_control_file

Convert a TECH file to an XML file for use in a GDS or DXF import.

read_configuration_file

Parse a file and return the information in a list or dictionary.

write_configuration_file

Create a configuration file in JSON or TOML format from a dictionary.

compute_fft

Compute FFT of input transient data.

Quaternion#

PyAEDT contains an implementation of fundamental quaternion operations.

Quaternions are only used to represent rotations in 3D space. They are not used to represent translations or other transformations. Only methods related to rotations are implemented.

Quaternion

Implements fundamental quaternion operations.

Math utils#

MathUtils is a class that provides mathematical utility methods like numerical comparisons and checks.

MathUtils

MathUtils is a utility class that provides methods for numerical comparisons and checks.