Skip to content

Commit

Permalink
Codacy skip
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys authored May 3, 2024
1 parent f79edcb commit 0d19fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyaedt/modules/SolveSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1955,13 +1955,13 @@ def _get_net_names(self, app, file_fullname):

object_p = aedtapp.modeler[object_names[0]]
object_p.name = net_name
object_p.color = [randrange(255), randrange(255), randrange(255)]
object_p.color = [randrange(255), randrange(255), randrange(255)] # nosec
elif len(object_names) > 1:
united_object = aedtapp.modeler.unite(object_names, purge=True)
obj_ind = aedtapp.modeler.objects[united_object].id
if obj_ind:
aedtapp.modeler.objects[obj_ind].name = net_name
aedtapp.modeler.objects[obj_ind].color = [randrange(255), randrange(255), randrange(255)]
aedtapp.modeler.objects[obj_ind].color = [randrange(255), randrange(255), randrange(255)] # nosec

if aedtapp.design_type == "Q3D Extractor":
aedtapp.auto_identify_nets()
Expand Down

0 comments on commit 0d19fa9

Please sign in to comment.