Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sage.geometry.polyhedron: Mark doctests # optional - sage.combinat #32653

Closed
mkoeppe opened this issue Oct 8, 2021 · 16 comments
Closed

sage.geometry.polyhedron: Mark doctests # optional - sage.combinat #32653

mkoeppe opened this issue Oct 8, 2021 · 16 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Oct 8, 2021

(cherry-picked from #32432)

Depends on #32614

CC: @kliem

Component: refactoring

Author: Matthias Koeppe

Branch/Commit: 3acc6a9

Reviewer: Jonathan Kliem

Issue created by migration from https://trac.sagemath.org/ticket/32653

@mkoeppe mkoeppe added this to the sage-9.5 milestone Oct 8, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 8, 2021

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 8, 2021

Commit: a307e92

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 8, 2021

Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:

1b8634dsage.doctest.external: Add 4ti2
d9d4f99Merge tag '9.4.beta6' into t/30887/public/30887
646e182src/sage/features/four_ti_2.py: Move import of SAGE_ENV inside the `__init__` method, to remove confusion of sage.misc.dev_tools
180e31dMerge #30887
10e8d63sage.features.sagemath: Use JoinFeature when tag is different from the actually tested module
654d09csage.features.sagemath: Change sage_optional_tags to sage_features
f63a7d0src/sage/features/: Move features depending on optional packages to separate files
c764c7aMerge #32614
add89fasrc/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx: Mark doctests using combinatorial polytopes # optional - sage.combinat or # optional - sage.rings.number_field
a307e92src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pyx: Mark doctests # optional - sage.combinat

@mkoeppe

This comment has been minimized.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 10, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

bc62348src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx: Add some missing # optional - sage.combinat

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 10, 2021

Changed commit from a307e92 to bc62348

@kliem
Copy link
Contributor

kliem commented Oct 11, 2021

comment:5
+            sage: P = polytopes.permutahedron(5)                                # optional - sage.rings.number_field
+            sage: C = CombinatorialPolyhedron(P)                                # optional - sage.rings.number_field
+            sage: it = C.face_iter(dimension=2)                                 # optional - sage.rings.number_field
+            sage: face = next(it); face                                         # optional - sage.rings.number_field
             A 2-dimensional face of a 4-dimensional combinatorial polyhedron
-            sage: face.ambient_Vrepresentation()
+            sage: face.ambient_Vrepresentation()                                # optional - sage.rings.number_field
             (A vertex at (1, 3, 2, 5, 4),
              A vertex at (2, 3, 1, 5, 4),
              A vertex at (3, 1, 2, 5, 4),
              A vertex at (3, 2, 1, 5, 4),
              A vertex at (2, 1, 3, 5, 4),
              A vertex at (1, 2, 3, 5, 4))
-            sage: face = next(it); face
+            sage: face = next(it); face                                         # optional - sage.rings.number_field
             A 2-dimensional face of a 4-dimensional combinatorial polyhedron
-            sage: face.ambient_Vrepresentation()
+            sage: face.ambient_Vrepresentation()                                # optional - sage.rings.number_field
             (A vertex at (2, 1, 4, 5, 3),
              A vertex at (3, 2, 4, 5, 1),
              A vertex at (3, 1, 4, 5, 2),
              A vertex at (1, 3, 4, 5, 2),
              A vertex at (1, 2, 4, 5, 3),
              A vertex at (2, 3, 4, 5, 1))
-            sage: face.ambient_Hrepresentation()
+            sage: face.ambient_Hrepresentation()                                # optional - sage.rings.number_field
             (An inequality (0, 0, -1, -1, 0) x + 9 >= 0,
              An inequality (0, 0, 0, -1, 0) x + 5 >= 0,
              An equation (1, 1, 1, 1, 1) x - 15 == 0)
-            sage: face.ambient_H_indices()
+            sage: face.ambient_H_indices()                                      # optional - sage.rings.number_field
             (25, 29, 30)
-            sage: face = next(it); face
+            sage: face = next(it); face                                         # optional - sage.rings.number_field
             A 2-dimensional face of a 4-dimensional combinatorial polyhedron
-            sage: face.ambient_H_indices()
+            sage: face.ambient_H_indices()                                      # optional - sage.rings.number_field
             (24, 29, 30)
-            sage: face.ambient_V_indices()
+            sage: face.ambient_V_indices()                                      # optional - sage.rings.number_field

Is this correct?

@kliem
Copy link
Contributor

kliem commented Oct 11, 2021

Reviewer: Jonathan Kliem

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 11, 2021

comment:7

No, I'll have to fix this one - a lapse of concentration

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 11, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

cf86501src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx: Fix some # optional

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 11, 2021

Changed commit from bc62348 to cf86501

@kliem
Copy link
Contributor

kliem commented Oct 11, 2021

comment:9

There is one example in src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx that should have went into #32652.

You can either fix it or leave it as it is. Either way, you can put it on positive review on my behalf.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 11, 2021

comment:10

let's just keep it here - thanks!

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 11, 2021

Changed commit from cf86501 to 3acc6a9

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 11, 2021

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:

4558791Merge tag '9.5.beta3' into t/32614/features_and_optional_tags_for_sage_subset_distributions
3acc6a9Merge #32614

@vbraun
Copy link
Member

vbraun commented Oct 19, 2021

@vbraun vbraun closed this as completed in 38e9da1 Oct 19, 2021
mkoeppe added a commit to mkoeppe/sage that referenced this issue Feb 12, 2023
mkoeppe added a commit to mkoeppe/sage that referenced this issue Feb 12, 2023
mkoeppe added a commit to mkoeppe/sage that referenced this issue Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants