# Ticket #22452: doctest-22452-polymake3.0.6.log

File doctest-22452-polymake3.0.6.log, 9.7 KB (added by , 6 years ago) |
---|

Line | |
---|---|

1 | too few successful tests, not using stored timings |

2 | Running doctests with ID 2017-03-10-19-40-27-1788a7fa. |

3 | Git branch: u/SimonKing/create_a_polymake_pexpect_interface |

4 | Using --optional=polymake,sage |

5 | Doctesting 1 file. |

6 | sage -t --long src/sage/interfaces/polymake.py |

7 | ********************************************************************** |

8 | File "src/sage/interfaces/polymake.py", line 236, in sage.interfaces.polymake.Polymake._function_element_class |

9 | Failed example: |

10 | p.get_schedule('F_VECTOR') # optional - polymake |

11 | Expected: |

12 | CONE_DIM : RAYS | INPUT_RAYS |

13 | precondition : BOUNDED ( POINTED : ) |

14 | POINTED : |

15 | N_INPUT_RAYS : INPUT_RAYS |

16 | precondition : ... |

17 | ... |

18 | N_RAYS : RAYS |

19 | N_FACETS : FACETS |

20 | precondition : COMBINATORIAL_DIM ( F_VECTOR : N_FACETS, N_RAYS, GRAPH.N_EDGES, DUAL_GRAPH.N_EDGES, COMBINATORIAL_DIM ) |

21 | F_VECTOR : N_FACETS, N_RAYS, GRAPH.N_EDGES, DUAL_GRAPH.N_EDGES, COMBINATORIAL_DIM |

22 | Got: |

23 | CONE_DIM : RAYS | INPUT_RAYS |

24 | precondition : BOUNDED ( POINTED : ) |

25 | POINTED : |

26 | precondition : POINTED ( LINEALITY_DIM, LINEALITY_SPACE : CONE_AMBIENT_DIM ) |

27 | LINEALITY_DIM, LINEALITY_SPACE : CONE_AMBIENT_DIM |

28 | COMBINATORIAL_DIM : CONE_DIM, LINEALITY_DIM |

29 | N_INPUT_RAYS : INPUT_RAYS |

30 | precondition : N_RAYS | N_INPUT_RAYS ( ppl.convex_hull.primal: FACETS, LINEAR_SPAN : RAYS | INPUT_RAYS ) |

31 | sensitivity check for FacetPerm |

32 | ppl.convex_hull.primal: FACETS, LINEAR_SPAN : RAYS | INPUT_RAYS |

33 | INPUT_RAYS_IN_FACETS : INPUT_RAYS, FACETS |

34 | sensitivity check for VertexPerm |

35 | RAYS_IN_FACETS, RAYS, LINEALITY_SPACE : INPUT_RAYS_IN_FACETS, INPUT_RAYS |

36 | GRAPH.ADJACENCY : RAYS_IN_FACETS |

37 | DUAL_GRAPH.ADJACENCY : RAYS_IN_FACETS |

38 | N_EDGES : ADJACENCY ( applied to GRAPH ) |

39 | N_EDGES : ADJACENCY ( applied to DUAL_GRAPH ) |

40 | N_FACETS : FACETS |

41 | N_RAYS : RAYS |

42 | precondition : COMBINATORIAL_DIM ( F_VECTOR : N_FACETS, N_RAYS, GRAPH.N_EDGES, DUAL_GRAPH.N_EDGES, COMBINATORIAL_DIM ) |

43 | F_VECTOR : N_FACETS, N_RAYS, GRAPH.N_EDGES, DUAL_GRAPH.N_EDGES, COMBINATORIAL_DIM |

44 | ********************************************************************** |

45 | File "src/sage/interfaces/polymake.py", line 289, in sage.interfaces.polymake.Polymake._function_call_string |

46 | Failed example: |

47 | if isinstance(g, sage.interfaces.polymake.PolymakeElement): # optional - polymake |

48 | print g |

49 | else: |

50 | print g() |

51 | Exception raised: |

52 | Traceback (most recent call last): |

53 | File "/opt/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 498, in _run |

54 | self.compile_and_execute(example, compiler, test.globs) |

55 | File "/opt/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 861, in compile_and_execute |

56 | exec(compiled, globs) |

57 | File "<doctest sage.interfaces.polymake.Polymake._function_call_string[5]>", line 4, in <module> |

58 | print g() |

59 | File "/opt/sage/local/lib/python2.7/site-packages/sage/interfaces/polymake.py", line 1754, in __call__ |

60 | return self._obj._check_valid().function_call(self._name, list(args), kwds) |

61 | File "/opt/sage/local/lib/python2.7/site-packages/sage/interfaces/polymake.py", line 264, in function_call |

62 | return self(s) |

63 | File "/opt/sage/local/lib/python2.7/site-packages/sage/interfaces/interface.py", line 259, in __call__ |

64 | return cls(self, x, name=name) |

65 | File "/opt/sage/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 1388, in __init__ |

66 | raise_(TypeError, x, sys.exc_info()[2]) |

67 | File "/opt/sage/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 1383, in __init__ |

68 | self._name = parent._create(value, name=name) |

69 | File "/opt/sage/local/lib/python2.7/site-packages/sage/interfaces/polymake.py", line 596, in _create |

70 | self.set(name, value) |

71 | File "/opt/sage/local/lib/python2.7/site-packages/sage/interfaces/polymake.py", line 632, in set |

72 | self.eval(cmd) |

73 | File "/opt/sage/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 1300, in eval |

74 | for L in code.split('\n') if L != '']) |

75 | File "/opt/sage/local/lib/python2.7/site-packages/sage/interfaces/polymake.py", line 882, in _eval_line |

76 | raise PolymakeError(e) |

77 | TypeError: Can't locate object method "GENERATORS" via package "Polymake::polytope::Polytope__Rational::_prop_GROUP" at input line 1. |

78 | ********************************************************************** |

79 | File "src/sage/interfaces/polymake.py", line 658, in sage.interfaces.polymake.Polymake.help |

80 | Failed example: |

81 | print polymake.help('Polytope', pager=False) # optional - polymake |

82 | Expected: |

83 | objects/Polytope: |

84 | Not necessarily bounded or unbounded polyhedron... |

85 | Nonetheless, the name "Polytope" is used ... |

86 | ... |

87 | Got: |

88 | objects/Polytope: |

89 | Not necessarily bounded convex polyhedron, i.e., the feasible region of a linear program. |

90 | Nonetheless, the name "Polytope" is used for two reasons: Firstly, as far as the combinatorics |

91 | is concerned we always deal with polytopes; see the description of VERTICES_IN_FACETS for details. |

92 | Note that a pointed polyhedron is projectively equivalent to a polytope. |

93 | The second reason is historical. |

94 | We use homogeneous coordinates, which is why Polytope is derived from Cone. |

95 | Scalar is the numeric data type used for the coordinates. |

96 | <BLANKLINE> |

97 | Examples: |

98 | <BLANKLINE> |

99 | *) To construct a polytope as the convex hull of three points in the plane use |

100 | > $p=new Polytope(POINTS=>[[1,0,0],[1,1,0],[1,0,1]]); |

101 | > print $p->N_FACETS |

102 | 3 |

103 | Note that homogeneous coordinates are used throughout. |

104 | *) Many standard constructions are available directly. For instance, to get a regular 120-cell (which is 4-dimensional) use: |

105 | > $c=regular_120_cell(); |

106 | > print $c->VOLUME; |

107 | 1575+705r5 |

108 | This is the exact volume 1575+705*\sqrt{5}. |

109 | polymake has limited support for polytopes with non-rational coordinates. |

110 | <BLANKLINE> |

111 | ********************************************************************** |

112 | File "src/sage/interfaces/polymake.py", line 1442, in sage.interfaces.polymake.PolymakeElement.__getattr__ |

113 | Failed example: |

114 | s.get_schedule('F_VECTOR') # optional - polymake |

115 | Expected: |

116 | CONE_DIM... |

117 | ... |

118 | BOUNDED : VERTICES | POINTS, POINTED |

119 | precondition : BOUNDED ( lrs.convex_hull.count: N_FACETS : RAYS | INPUT_RAYS ) |

120 | lrs.convex_hull.count: N_FACETS : RAYS | INPUT_RAYS |

121 | ... |

122 | COMBINATORIAL_DIM : CONE_DIM, LINEALITY_DIM |

123 | precondition : COMBINATORIAL_DIM ( F_VECTOR : N_FACETS, N_RAYS, COMBINATORIAL_DIM ) |

124 | F_VECTOR : N_FACETS, N_RAYS, COMBINATORIAL_DIM |

125 | Got: |

126 | LINEAR_SPAN : RAYS | INPUT_RAYS |

127 | POINTED : RAYS |

128 | BOUNDED : VERTICES | POINTS, POINTED |

129 | precondition : BOUNDED ( lrs.convex_hull.count: N_FACETS : RAYS | INPUT_RAYS ) |

130 | lrs.convex_hull.count: N_FACETS : RAYS | INPUT_RAYS |

131 | precondition : POINTED ( LINEALITY_DIM, LINEALITY_SPACE : CONE_AMBIENT_DIM ) |

132 | LINEALITY_DIM, LINEALITY_SPACE : CONE_AMBIENT_DIM |

133 | CONE_DIM : CONE_AMBIENT_DIM, LINEAR_SPAN |

134 | COMBINATORIAL_DIM : CONE_DIM, LINEALITY_DIM |

135 | precondition : COMBINATORIAL_DIM ( F_VECTOR : N_FACETS, N_RAYS, COMBINATORIAL_DIM ) |

136 | F_VECTOR : N_FACETS, N_RAYS, COMBINATORIAL_DIM |

137 | ********************************************************************** |

138 | File "src/sage/interfaces/polymake.py", line 1627, in sage.interfaces.polymake.PolymakeElement._sage_doc_ |

139 | Failed example: |

140 | print c._sage_doc_() # optional - polymake |

141 | Expected: |

142 | objects/Polytope: |

143 | Not necessarily bounded or unbounded polyhedron... |

144 | Nonetheless, the name "Polytope" is used ... |

145 | ... |

146 | <BLANKLINE> |

147 | objects/Polytope/specializations/Polytope<Rational>: |

148 | A rational polyhedron realized in Q^d |

149 | Got: |

150 | objects/Polytope: |

151 | Not necessarily bounded convex polyhedron, i.e., the feasible region of a linear program. |

152 | Nonetheless, the name "Polytope" is used for two reasons: Firstly, as far as the combinatorics |

153 | is concerned we always deal with polytopes; see the description of VERTICES_IN_FACETS for details. |

154 | Note that a pointed polyhedron is projectively equivalent to a polytope. |

155 | The second reason is historical. |

156 | We use homogeneous coordinates, which is why Polytope is derived from Cone. |

157 | Scalar is the numeric data type used for the coordinates. |

158 | <BLANKLINE> |

159 | Examples: |

160 | <BLANKLINE> |

161 | *) To construct a polytope as the convex hull of three points in the plane use |

162 | > $p=new Polytope(POINTS=>[[1,0,0],[1,1,0],[1,0,1]]); |

163 | > print $p->N_FACETS |

164 | 3 |

165 | Note that homogeneous coordinates are used throughout. |

166 | *) Many standard constructions are available directly. For instance, to get a regular 120-cell (which is 4-dimensional) use: |

167 | > $c=regular_120_cell(); |

168 | > print $c->VOLUME; |

169 | 1575+705r5 |

170 | This is the exact volume 1575+705*\sqrt{5}. |

171 | polymake has limited support for polytopes with non-rational coordinates. |

172 | <BLANKLINE> |

173 | objects/Polytope/specializations/Polytope<Rational>: |

174 | A rational polyhedron realized in Q^d |

175 | <BLANKLINE> |

176 | ********************************************************************** |

177 | 5 items had failures: |

178 | 1 of 7 in sage.interfaces.polymake.Polymake._function_call_string |

179 | 1 of 4 in sage.interfaces.polymake.Polymake._function_element_class |

180 | 1 of 4 in sage.interfaces.polymake.Polymake.help |

181 | 1 of 12 in sage.interfaces.polymake.PolymakeElement.__getattr__ |

182 | 1 of 4 in sage.interfaces.polymake.PolymakeElement._sage_doc_ |

183 | [192 tests, 5 failures, 45.20 s] |

184 | ---------------------------------------------------------------------- |

185 | sage -t --long src/sage/interfaces/polymake.py # 5 doctests failed |

186 | ---------------------------------------------------------------------- |

187 | Total time for all tests: 45.3 seconds |

188 | cpu time: 1.5 seconds |

189 | cumulative wall time: 45.2 seconds |