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

Commit

Permalink
ManifoldSubset.open_cover_family: Add option supersets
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Apr 26, 2021
1 parent cec7fa2 commit c40ec03
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sage/manifolds/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def open_covers(self, trivial=True, supersets=False):
continue
yield ManifoldSubsetFiniteFamily(oc)

def open_cover_family(self, trivial=True):
def open_cover_family(self, trivial=True, supersets=False):
r"""
Return the family of open covers of the current subset.
Expand Down Expand Up @@ -630,6 +630,8 @@ def open_cover_family(self, trivial=True):
- ``trivial`` -- (default: ``True``) if ``self`` is open, include the trivial
open cover of ``self`` by itself
- ``supersets`` -- (default: ``False``) if ``True``, include open covers of
all the supersets; it can also be an iterable of supersets to include
EXAMPLES::
Expand All @@ -652,7 +654,8 @@ def open_cover_family(self, trivial=True):
Set {{A, B, V}, {M}, {U, V}} of objects of the 2-dimensional topological manifold M
"""
return ManifoldObjectFiniteFamily(self.open_covers(trivial=trivial))
return ManifoldObjectFiniteFamily(self.open_covers(
trivial=trivial, supersets=supersets))

def subsets(self):
r"""
Expand Down

0 comments on commit c40ec03

Please sign in to comment.