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

Remove unused variables. #4396

Merged
merged 3 commits into from
Mar 25, 2024
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 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
Loading