Skip to content

Commit e65e3b5

Browse files
authored
Merge pull request #1061 from compas-dev/linting_issue
sorted out some linting issues
2 parents 35ce6d6 + c2d6974 commit e65e3b5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/compas/numerical/ga/ga.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def __str__(self):
267267
best = self.best_individual_index, self.current_pop['scaled'][self.best_individual_index]
268268
try:
269269
fit = self.current_pop['fit_value'][self.best_individual_index]
270-
except(Exception):
270+
except Exception:
271271
fit = None
272272
return TPL.format(fit_name, fit_type, num_gen, num_pop, num_var, best, fit)
273273

src/compas/numerical/ga/moga.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def __str__(self):
306306
fitl = [list(x) for x in zip(*self.parent_pop['fit_values'])]
307307
best = [self.get_sorting_indices(l, reverse=False)[0] if self.fit_types[i] == 'min' else self.get_sorting_indices(l, reverse=True)[0] for i, l in enumerate(fitl)]
308308
fit = [min(x) if self.fit_types[i] == 'min' else max(x) for i, x in enumerate(fitl)]
309-
except(Exception):
309+
except Exception:
310310
best = None
311311
fit = None
312312
return TPL.format(fit_names, fit_types, num_gen, num_pop, num_var, best, fit)

src/compas_rhino/geometry/trimesh/curvature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def trimesh_principal_curvature(M):
290290

291291
# (3) Main - loop over all vertices
292292
for i in range(mesh.Vertices.Count):
293-
if(A[i] == 0):
293+
if A[i] == 0:
294294
k1.append(None)
295295
k2.append(None)
296296
continue

0 commit comments

Comments
 (0)