Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
pep8 conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
jplab committed Mar 2, 2017
1 parent fae5016 commit eb4dfac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/sage/homology/simplicial_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@ def h_triangle(self):
from sage.arith.all import binomial
ret = [[0]*(i+1) for i in range(self.dimension() + 2)]
f = self.f_triangle()
for i,row in enumerate(ret):
for i, row in enumerate(ret):
for j in range(i+1):
row[j] = sum((-1)**(j-k) * binomial(i-k, j-k) * f[i][k]
for k in range(j+1))
Expand Down Expand Up @@ -2954,7 +2954,7 @@ def is_shelling_order(self, shelling_order, certificate=False):
return False

cur_complex = SimplicialComplex([])
for i,F in enumerate(shelling_order):
for i, F in enumerate(shelling_order):
if i > 0:
# The shelling condition is precisely that intersection is
# a pure complex of one dimension less and stop if this fails
Expand Down Expand Up @@ -3423,10 +3423,11 @@ def stellar_subdivision(self,simplex,inplace=False,is_mutable=True):
- A simplicial complex obtained by the stellar subdivision of the face
`simplex`. If inplace is `True`, the object `self` was modified,
otherwise a new simplicial complex is returned. The parameter
`is_mutable` determines the mutability of the output.
`is_mutable` determines the mutability of the output.
EXAMPLES::
sage: SC = SimplicialComplex([[0,1,2],[1,2,3]])
sage: F1 = Simplex([1,2])
sage: F2 = Simplex([1,3])
Expand Down Expand Up @@ -3478,7 +3479,7 @@ def stellar_subdivision(self,simplex,inplace=False,is_mutable=True):
else:
vertex_label += 1
new_vertex = SimplicialComplex([[vertex_label]])
new_faces = new_vertex.join(working_complex.star(simplex),rename_vertices=False)
new_faces = new_vertex.join(working_complex.star(simplex), rename_vertices=False)
for face in new_faces.facets():
working_complex.add_face(face)

Expand Down

0 comments on commit eb4dfac

Please sign in to comment.