Skip to content

Commit c9207cc

Browse files
committed
python formatting: autopep8 . --select E12
1 parent 013dadf commit c9207cc

8 files changed

Lines changed: 24 additions & 24 deletions

File tree

devsim_docs/source/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3232
# ones.
3333
extensions = ['sphinx.ext.intersphinx',
34-
'sphinx.ext.todo',
35-
'sphinx.ext.mathjax',
36-
'sphinx.ext.ifconfig',
37-
'sphinx.ext.viewcode',
38-
'sphinx.ext.githubpages',
39-
'sphinxcontrib.bibtex',
40-
]
34+
'sphinx.ext.todo',
35+
'sphinx.ext.mathjax',
36+
'sphinx.ext.ifconfig',
37+
'sphinx.ext.viewcode',
38+
'sphinx.ext.githubpages',
39+
'sphinxcontrib.bibtex',
40+
]
4141

4242
# Add any paths that contain templates here, relative to this directory.
4343
templates_path = ['_templates']

finfet_ex/finfet/fin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import pygmsh
33
from bool_common import *
44
geom = pygmsh.opencascade.Geometry(
5-
characteristic_length_min=.1,
5+
characteristic_length_min=.1,
66
characteristic_length_max=2.5e-5
7-
)
7+
)
88

99

1010
h_top=40

finfet_ex/finfet/mesh_convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def read_gmsh_info(gmshname):
212212
ifh.seek(0)
213213
triangles, tetrahedra = read_elements_from_gmsh(ifh)
214214
return {
215-
'pnames' : pnames,
215+
'pnames' : pnames,
216216
"coordinates" : coordinates,
217217
"triangles" : triangles,
218218
"tetrahedra" : tetrahedra,

finfet_ex/finfet/moscap3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import bool_common
44

55
geom = pygmsh.opencascade.Geometry(
6-
#characteristic_length_min=.1,
6+
#characteristic_length_min=.1,
77
#characteristic_length_max=2.5e-5
8-
)
8+
)
99

1010
w=1
1111
h=1
@@ -42,7 +42,7 @@
4242
# TODO: add refinement box
4343
#
4444
mydict = {
45-
"lrf" : lrf,
45+
"lrf" : lrf,
4646
"lcar" : lcar,
4747
"trf" : trf,
4848
"xrf" : xrf,

finfet_ex/finfet/test_convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def find_interfaces(tetrahedra):
1010
the_set = set_dict[pnum]
1111
n = sorted(t[0:4])
1212
tuples_to_add = [
13-
tuple([n[0], n[1], n[2]]),
13+
tuple([n[0], n[1], n[2]]),
1414
tuple([n[0], n[1], n[3]]),
1515
tuple([n[0], n[2], n[3]]),
1616
tuple([n[1], n[2], n[3]]),
@@ -151,7 +151,7 @@ def get_interface_map(interfaces, pname_map, elem_ids, name_priority, interface_
151151
phys_id = get_next_phys_id(pname_map)
152152
pname_map[phys_id] = (2, new_name)
153153
interface_map[new_name] = {
154-
'phys_id' : phys_id,
154+
'phys_id' : phys_id,
155155
'elem_id' : {},
156156
}
157157
interface_map[new_name]['elem_id'][new_elem_id] = interface

finfet_ex/regression/bar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
import pygmsh
33
geom = pygmsh.opencascade.Geometry(
4-
characteristic_length_min=0.1,
4+
characteristic_length_min=0.1,
55
characteristic_length_max=0.1,
6-
)
6+
)
77

88
def create_vol_volume(geom, h, w, l, x, z, cr, lcar=100):
99
f = 0.5*w

misc/check_tetrahedra.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@
125125
for i in range(4):
126126
for j in range(i+1, 4):
127127
ax.plot(
128-
(xs[i], xs[j]),
128+
(xs[i], xs[j]),
129129
(ys[i], ys[j]),
130130
(zs[i], zs[j]), 'b')
131131

132132
for i in range(4):
133133
ax.plot(
134-
(xs[i], foo[0]),
134+
(xs[i], foo[0]),
135135
(ys[i], foo[1]),
136136
(zs[i], foo[2]), 'k'
137-
)
137+
)
138138
mid_x = foo[0]
139139
mid_y = foo[1]
140140
mid_z = foo[2]

refinement/refinement2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ def get_node_index(device, region):
5151
if "node_index@n0" not in get_edge_model_list(device=device, region=region):
5252
edge_from_node_model(node_model="node_index", device=device, region=region)
5353
nindex = list(
54-
zip(
55-
[int(x) for x in get_edge_model_values(device=device, region=region, name="node_index@n0")],
56-
[int(x) for x in get_edge_model_values(device=device, region=region, name="node_index@n1")],
57-
)
54+
zip(
55+
[int(x) for x in get_edge_model_values(device=device, region=region, name="node_index@n0")],
56+
[int(x) for x in get_edge_model_values(device=device, region=region, name="node_index@n1")],
57+
)
5858
)
5959
return nindex
6060

0 commit comments

Comments
 (0)