Skip to content

Commit

Permalink
Remove unused variables. (#4396)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxJPRey authored Mar 25, 2024
1 parent 822d76b commit 56780d7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyaedt/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ def set_differential_pair(
self.odesign.SaveDiffPairsToFile(tmpfile1)
with open_file(tmpfile1, "r") as fh:
lines = fh.read().splitlines()
num_diffs_before = len(lines)

old_arg = []
for line in lines:
data = line.split(",")
Expand Down
2 changes: 1 addition & 1 deletion pyaedt/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,7 @@ def get_ansyscloud_job_info(self, job_id=None, job_name=None): # pragma: no cov
>>> d.release_desktop(False,False)
"""
command = os.path.join(self.install_path, "common", "AnsysCloudCLI", "AnsysCloudCli.exe")
ver = self.aedt_version_id.replace(".", "R")

if job_name:
command = [command, "jobinfo", "-j", job_name]
elif job_id:
Expand Down
2 changes: 0 additions & 2 deletions pyaedt/modeler/circuits/object3dcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,6 @@ def model_data(self):
-------
:class:`pyaedt.modeler.Object3d.ModelParameters`
"""
"""Return the model data if the component has one.
"""
if self._model_data:
return self._model_data
if self.model_name:
Expand Down
3 changes: 1 addition & 2 deletions pyaedt/modeler/modelerpcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def fit_all(self):

@property
def model_units(self):
"""Model units.
"""Model units as a string (for example, "mm").
References
----------
Expand All @@ -170,7 +170,6 @@ def model_units(self):
@model_units.setter
def model_units(self, units):
assert units in AEDT_UNITS["Length"], "Invalid units string {0}.".format(units)
"""Set the model units as a string (for example, "mm")."""
self.oeditor.SetActiveUnits(units)

@property
Expand Down
2 changes: 1 addition & 1 deletion pyaedt/modeler/schematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ def primitives(self):

@model_units.setter
def model_units(self, units):
"""Set the model units as a string e.g. "mm"."""
assert units in AEDT_UNITS["Length"], "Invalid units string {0}".format(units)
""" Set the model units as a string e.g. "mm" """
self.oeditor.SetActivelUnits(["NAME:Units Parameter", "Units:=", units, "Rescale:=", False])

@pyaedt_function_handler()
Expand Down

0 comments on commit 56780d7

Please sign in to comment.