Skip to content

Commit

Permalink
Push first-round edits to PY files not yet reviwewd
Browse files Browse the repository at this point in the history
  • Loading branch information
PipKat committed Dec 18, 2023
1 parent 6629f8c commit 663b3ac
Show file tree
Hide file tree
Showing 17 changed files with 489 additions and 556 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""SIWave DCIR Simulation Settings."""
"""SIWave DCIR simulation settings."""

import ansys.api.edb.v1.siwave_dcir_simulation_settings_pb2 as pb

Expand All @@ -8,15 +8,15 @@


class SIWaveDCIRSimulationSettings(SIWaveSimulationSettings):
"""Class representing SIWave DCIR simulation settings."""
"""Represents SIWave DCIR simulation settings."""

__stub: SIWaveDCIRSimulationSettingsServiceStub = StubAccessor(
StubType.siwave_dcir_sim_settings
)

@property
def icepak_temp_file(self):
""":obj:`bool`: File path to file containing Icepak temperature map to be imported."""
""":obj:`bool`: Path to the file containing the Icepak temperature map to import."""
return self.__stub.GetIcepakTempFile(self.msg).value

@icepak_temp_file.setter
Expand All @@ -25,9 +25,9 @@ def icepak_temp_file(self, icepak_temp_file):

@property
def source_terms_to_ground(self):
""":obj:`dict` { :obj:`str` : :obj:`int` }: A dictionary of SourceName, NodeToGround pairs.
""":obj:`dict` { :obj:`str` : :obj:`int` }: Dictionary of ``SourceName, NodeToGround`` pairs.
NodeToGround is one of 0 (unspecified), 1 (negative), 2 (positive)
``NodeToGround`` options are ``0`` (unspecified), ``1`` (negative), and ``2`` (positive).
"""
return {
source: t_to_g
Expand All @@ -47,7 +47,7 @@ def source_terms_to_ground(self, source_terms_to_ground):

@property
def export_dc_thermal_data(self):
""":obj:`bool`: Flag indicating whether to export dc thermal data."""
""":obj:`bool`: Flag indicating if DC thermal data is exported."""
return self.__stub.GetExportDCThermalData(self.msg).value

@export_dc_thermal_data.setter
Expand All @@ -58,7 +58,7 @@ def export_dc_thermal_data(self, export_dc_thermal_data):

@property
def import_thermal_data(self):
""":obj:`bool`: Flag indicating whether to import thermal data."""
""":obj:`bool`: Flag indicating if thermal data is imported."""
return self.__stub.GetImportThermalData(self.msg).value

@import_thermal_data.setter
Expand All @@ -67,7 +67,7 @@ def import_thermal_data(self, import_thermal_data):

@property
def full_dc_report_path(self):
""":obj:`str`: DC report path."""
""":obj:`str`: Path to the DC report."""
return self.__stub.GetFullDCReportPath(self.msg).value

@full_dc_report_path.setter
Expand All @@ -76,7 +76,7 @@ def full_dc_report_path(self, full_dc_report_path):

@property
def via_report_path(self):
""":obj:`str`: Via report path."""
""":obj:`str`: Path to the via report."""
return self.__stub.GetViaReportPath(self.msg).value

@via_report_path.setter
Expand All @@ -85,7 +85,7 @@ def via_report_path(self, via_report_path):

@property
def per_pin_res_path(self):
""":obj:`str`: Per pin res path."""
""":obj:`str`: Path to the per pin resolution."""
return self.__stub.GetPerPinResPath(self.msg).value

@per_pin_res_path.setter
Expand All @@ -94,7 +94,7 @@ def per_pin_res_path(self, per_pin_res_path):

@property
def dc_report_config_file(self):
""":obj:`str`: DC report config file."""
""":obj:`str`: Configuration file for the DC report."""
return self.__stub.GetDCReportConfigFile(self.msg).value

@dc_report_config_file.setter
Expand All @@ -105,7 +105,7 @@ def dc_report_config_file(self, dc_report_config_file):

@property
def dc_report_show_active_devices(self):
""":obj:`bool`: Flag indicating whether to show active devices in the DC report."""
""":obj:`bool`: Flag indicating if active devices are shown in the DC report."""
return self.__stub.GetDCReportShowActiveDevices(self.msg).value

@dc_report_show_active_devices.setter
Expand All @@ -116,7 +116,7 @@ def dc_report_show_active_devices(self, dc_report_show_active_devices):

@property
def per_pin_use_pin_format(self):
""":obj:`bool`: Flag indicating per pin use pin format."""
""":obj:`bool`: Flag indicating if the per pin uses the pin format."""
return self.__stub.GetPerPinUsePinFormat(self.msg).value

@per_pin_use_pin_format.setter
Expand All @@ -127,7 +127,7 @@ def per_pin_use_pin_format(self, per_pin_use_pin_format):

@property
def use_loop_res_for_per_pin(self):
""":obj:`bool`: Flag indicating whether to use loop res for per pin."""
""":obj:`bool`: Flag indicating if the per pin uses the loop resolution."""
return self.__stub.GetUseLoopResForPerPin(self.msg).value

@use_loop_res_for_per_pin.setter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""SIWave Simulation Setup."""
"""SIWave simulation setup."""

from ansys.edb.core.simulation_setup.simulation_setup import SimulationSetup, SimulationSetupType
from ansys.edb.core.simulation_setup.siwave_dcir_simulation_settings import (
Expand All @@ -7,27 +7,27 @@


class SIWaveDCIRSimulationSetup(SimulationSetup):
"""Class representing SIWave DCIR simulation setup data."""
"""Represents SIWave DCIR simulation setup data."""

@classmethod
def create(cls, cell, name):
"""Create a SIWaveDCIRSimulationSetup.
"""Create a SIWave DCIR simulation setup.
Parameters
----------
cell : :class:`Cell <ansys.edb.core.layout.Cell>`
Cell containing new simulation setup.
Cell to create the simulation setup in.
name : str
Name of new simulation setup
Name of the simulation setup.
Returns
-------
SIWaveDCIRSimulationSetup
Newly created simulation setup.
Simulation setup created.
"""
return super()._create(cell, name, SimulationSetupType.SI_WAVE_DCIR)

@property
def settings(self):
""":class:`SIWaveSimulationSettings`: Simulation settings of the siwave simulation setup."""
""":class:`SIWaveSimulationSettings`: Simulation settings of the simulation setup."""
return SIWaveDCIRSimulationSettings(self)
Loading

0 comments on commit 663b3ac

Please sign in to comment.