Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LFL-Lab committed May 30, 2023
1 parent c805ece commit 780f0b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qiskit_metal/qlibrary/qubits/transmon_cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def make_connection_pad(self, name: str):
g_s = pc.ground_spacing
con_loc = pc.connector_location

claw_cpw = draw.box(-c_w, -c_c_w / 2, -c_c_l-c_w, c_c_w / 2)
claw_cpw = draw.box(-c_w, -c_c_w / 2, -c_c_l - c_w, c_c_w / 2)

if pc.connector_type == 0: # Claw connector
t_claw_height = 2*c_g + 2 * c_w + 2*g_s + \
Expand All @@ -204,7 +204,8 @@ def make_connection_pad(self, name: str):
# Done here so as to have the same translations and rotations as the connector. Could
# extract from the connector later, but since allowing different connector types,
# this seems more straightforward.
port_line = draw.LineString([(-c_c_l-c_w, -c_c_w / 2), (-c_c_l-c_w, c_w / 2)])
port_line = draw.LineString([(-c_c_l - c_w, -c_c_w / 2),
(-c_c_l - c_w, c_w / 2)])

claw_rotate = 0
if con_loc > 135:
Expand All @@ -229,4 +230,4 @@ def make_connection_pad(self, name: str):
subtract=True,
chip=chip)

self.add_pin(name, port_line.coords, c_w)
self.add_pin(name, port_line.coords, c_c_w)

0 comments on commit 780f0b4

Please sign in to comment.