Skip to content

Commit 2ba4256

Browse files
committed
linter corrections
1 parent 151f596 commit 2ba4256

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

pypeec/lib_mesher/mesher_shape.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _get_boundary_polygon(tag, bnd, z_min):
110110
# get the indices
111111
faces = np.empty(0, dtype=np.int64)
112112
lines = np.arange(len(points), dtype=np.int64)
113-
lines = np.concatenate(([len(points)+1], lines, [0]))
113+
lines = np.concatenate(([len(points) + 1], lines, [0]))
114114

115115
# create the polygon
116116
mesh = {

pypeec/lib_mesher/mesher_stl.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ def _get_mesh_stl(domain_stl, check):
114114
# assign the mesh
115115
mesh_stl.append({"tag": tag, "mesh": mesh})
116116

117-
118117
return mesh_stl, xyz_min, xyz_max
119118

120119

@@ -264,12 +263,14 @@ def _get_merge_mesh(mesh_stl):
264263
mesh = mesh_stl_tmp["mesh"]
265264

266265
# add the mesh
267-
geom_def.append({
268-
"tag": tag,
269-
"faces": np.array(mesh.faces, dtype=np.int64),
270-
"lines": np.array(mesh.lines, dtype=np.int64),
271-
"points": np.array(mesh.points, dtype=np.float64),
272-
})
266+
geom_def.append(
267+
{
268+
"tag": tag,
269+
"faces": np.array(mesh.faces, dtype=np.int64),
270+
"lines": np.array(mesh.lines, dtype=np.int64),
271+
"points": np.array(mesh.points, dtype=np.float64),
272+
}
273+
)
273274

274275
return geom_def
275276

pypeec/lib_plot/manage_plotgui.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, plot_mode, path, name):
7474
self.name = name
7575
self.pl_list = []
7676
self.fig_list = []
77-
self.vtk_list = []
77+
self.obj_list = []
7878

7979
# variable for the Qt application single instance
8080
global APPQT
@@ -332,16 +332,16 @@ def _save_data(self):
332332
Save all the plot data as VTK files.
333333
"""
334334

335-
for tag, vtk in self.vtk_list:
335+
for tag, obj in self.obj_list:
336336
filename = self._get_filename(tag, "vtk")
337-
vtk.save(filename)
337+
obj.save(filename)
338338

339-
def open_vtk(self, tag, vtk):
339+
def open_vtk(self, tag, obj):
340340
"""
341341
Add a VTK object.
342342
"""
343343

344-
self.vtk_list.append((tag, vtk))
344+
self.obj_list.append((tag, obj))
345345

346346
def open_pyvista(self, tag, data_window):
347347
"""
@@ -404,7 +404,7 @@ def show(self):
404404
with LOGGER.BlockIndent():
405405
LOGGER.debug("number of 3D plots = %s", len(self.pl_list))
406406
LOGGER.debug("number of 2D plots = %s", len(self.fig_list))
407-
LOGGER.debug("number of VTK datasets = %s", len(self.vtk_list))
407+
LOGGER.debug("number of VTK datasets = %s", len(self.obj_list))
408408

409409
if (len(self.pl_list) == 0) and (len(self.fig_list) == 0):
410410
return

0 commit comments

Comments
 (0)