Skip to content

Commit 81731a3

Browse files
author
Matthias Koeppe
committed
sage.topology: Fix # needs
1 parent 14a4071 commit 81731a3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/sage/topology/simplicial_complex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2338,8 +2338,9 @@ def _homology_(self, dim=None, base_ring=ZZ, subcomplex=None,
23382338
23392339
We need an immutable complex to compute homology generators::
23402340
2341+
sage: # needs sage.modules
23412342
sage: sphere.set_immutable()
2342-
sage: sphere._homology_(generators=True) # needs sage.modules
2343+
sage: sphere._homology_(generators=True)
23432344
{0: [], 1: [], 2: [(Z, (0, 1, 2) - (0, 1, 3) + (0, 2, 3) - (1, 2, 3))]}
23442345
23452346
Another way to get a two-sphere: take a two-point space and take its

src/sage/topology/simplicial_complex_morphism.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,9 @@ def associated_chain_complex_morphism(self, base_ring=ZZ,
361361
362362
Some simplicial maps which reverse the orientation of a few simplices::
363363
364+
sage: # needs sage.modules
364365
sage: g = {0:1, 1:2, 2:0}
365-
sage: H(g).associated_chain_complex_morphism()._matrix_dictionary # needs sage.modules
366+
sage: H(g).associated_chain_complex_morphism()._matrix_dictionary
366367
{0: [0 0 1]
367368
[1 0 0]
368369
[0 1 0]
@@ -376,7 +377,7 @@ def associated_chain_complex_morphism(self, base_ring=ZZ,
376377
2: []}
377378
sage: X = SimplicialComplex([[0, 1]], is_mutable=False)
378379
sage: g = {0:1, 1:0}
379-
sage: Hom(X, X)(X).associated_chain_complex_morphism()._matrix_dictionary # needs sage.modules
380+
sage: Hom(X, X)(X).associated_chain_complex_morphism()._matrix_dictionary
380381
{0: [0 1]
381382
[1 0],
382383
1: [-1]}

0 commit comments

Comments
 (0)