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

Commit

Permalink
fixing optional flags, added doctest for number field polyhedron pick…
Browse files Browse the repository at this point in the history
…ling
  • Loading branch information
Jonathan Kliem committed Jan 27, 2020
1 parent 38dff79 commit 57beae3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/sage/geometry/polyhedron/backend_normaliz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,10 +1215,16 @@ def __setstate__(self, state):
sage: P2 == P # optional - pynormaliz
True
sage: P = polytopes.permutahedron(4, backend='normaliz') * Polyhedron(lines=[[1]], backend='normaliz')
sage: P1 = loads(dumps(P))
sage: P2 = Polyhedron_normaliz(P1.parent(), None, None, P1._normaliz_cone)
sage: P2 == P
sage: P = polytopes.permutahedron(4, backend='normaliz') * Polyhedron(lines=[[1]], backend='normaliz') # optional - pynormaliz
sage: P1 = loads(dumps(P)) # optional - pynormaliz
sage: P2 = Polyhedron_normaliz(P1.parent(), None, None, P1._normaliz_cone) # optional - pynormaliz
sage: P2 == P # optional - pynormaliz
True
sage: P = polytopes.dodecahedron(backend='normaliz') # optional - pynormaliz
sage: P1 = loads(dumps(P)) # optional - pynormaliz
sage: P2 = Polyhedron_normaliz(P1.parent(), None, None, P1._normaliz_cone, normaliz_field=P1._normaliz_field) # optional - pynormaliz
sage: P == P2 # optional - pynormaliz
True
"""
super(Polyhedron_normaliz, self).__setstate__(state)
Expand Down

0 comments on commit 57beae3

Please sign in to comment.