regina 7.3.1.1__cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of regina might be problematic. Click here for more details.
- regina/__init__.py +203 -0
- regina/engine.cpython-313-x86_64-linux-gnu.so +0 -0
- regina/plainCompleter.py +221 -0
- regina/pyCensus/__init__.py +14 -0
- regina/pyCensus/christy-knots-links.tdb +0 -0
- regina/pyCensus/closed-hyp-census-full.tdb +0 -0
- regina/pyCensus/closed-nor-census-11.tdb +0 -0
- regina/pyCensus/closed-or-census-11.tdb +0 -0
- regina/pyCensus/cusped-hyp-nor-census-9.tdb +0 -0
- regina/pyCensus/cusped-hyp-or-census-9.tdb +0 -0
- regina/sageRegina/__init__.py +2 -0
- regina/sageRegina/config.py +9 -0
- regina/sageRegina/test.py +132 -0
- regina/sageRegina/testsuite/CMakeLists.txt +60 -0
- regina/sageRegina/testsuite/O2_1.rga +15 -0
- regina/sageRegina/testsuite/O2_1.tri +28 -0
- regina/sageRegina/testsuite/README.txt +20 -0
- regina/sageRegina/testsuite/alltypes.out +1551 -0
- regina/sageRegina/testsuite/alltypes.test +88 -0
- regina/sageRegina/testsuite/angles.out +102 -0
- regina/sageRegina/testsuite/angles.test +72 -0
- regina/sageRegina/testsuite/basic_callback.out +124 -0
- regina/sageRegina/testsuite/basic_sub.out +7 -0
- regina/sageRegina/testsuite/bool.out +6 -0
- regina/sageRegina/testsuite/bool.test +64 -0
- regina/sageRegina/testsuite/bytes.out +17 -0
- regina/sageRegina/testsuite/bytes.test +78 -0
- regina/sageRegina/testsuite/callbacks.out +515 -0
- regina/sageRegina/testsuite/callbacks.test +281 -0
- regina/sageRegina/testsuite/census.out +120 -0
- regina/sageRegina/testsuite/census.test +157 -0
- regina/sageRegina/testsuite/clone.out +18 -0
- regina/sageRegina/testsuite/clone.test +101 -0
- regina/sageRegina/testsuite/constructors.out +14 -0
- regina/sageRegina/testsuite/constructors.test +97 -0
- regina/sageRegina/testsuite/cube.orb +87 -0
- regina/sageRegina/testsuite/discs.out +3 -0
- regina/sageRegina/testsuite/discs.test +40 -0
- regina/sageRegina/testsuite/docstrings.filter +19 -0
- regina/sageRegina/testsuite/docstrings.out +808 -0
- regina/sageRegina/testsuite/docstrings.out.v2 +808 -0
- regina/sageRegina/testsuite/docstrings.test +57 -0
- regina/sageRegina/testsuite/dodec.orb +309 -0
- regina/sageRegina/testsuite/embeddings.out +23 -0
- regina/sageRegina/testsuite/embeddings.test +89 -0
- regina/sageRegina/testsuite/enumerate.out +62 -0
- regina/sageRegina/testsuite/enumerate.test +82 -0
- regina/sageRegina/testsuite/equality.out +112 -0
- regina/sageRegina/testsuite/equality.test +310 -0
- regina/sageRegina/testsuite/euler.out +15 -0
- regina/sageRegina/testsuite/euler.test +95 -0
- regina/sageRegina/testsuite/exception.out +7 -0
- regina/sageRegina/testsuite/exception.test +100 -0
- regina/sageRegina/testsuite/facenumbering.out +546 -0
- regina/sageRegina/testsuite/facenumbering.test +74 -0
- regina/sageRegina/testsuite/faces.out +40 -0
- regina/sageRegina/testsuite/faces.test +72 -0
- regina/sageRegina/testsuite/file.out +1229 -0
- regina/sageRegina/testsuite/file.test +70 -0
- regina/sageRegina/testsuite/file1.rga +0 -0
- regina/sageRegina/testsuite/file2.rga +0 -0
- regina/sageRegina/testsuite/file3.rga +119 -0
- regina/sageRegina/testsuite/flype.out +37 -0
- regina/sageRegina/testsuite/flype.test +50 -0
- regina/sageRegina/testsuite/generic.out +116 -0
- regina/sageRegina/testsuite/generic.test +76 -0
- regina/sageRegina/testsuite/groups.out +70 -0
- regina/sageRegina/testsuite/groups.test +117 -0
- regina/sageRegina/testsuite/hypersurfaces.out +681 -0
- regina/sageRegina/testsuite/hypersurfaces.test +90 -0
- regina/sageRegina/testsuite/i18n-latin1.rga +8 -0
- regina/sageRegina/testsuite/i18n-utf8.rga +8 -0
- regina/sageRegina/testsuite/i18n.out +6 -0
- regina/sageRegina/testsuite/i18n.test +91 -0
- regina/sageRegina/testsuite/id.out +2 -0
- regina/sageRegina/testsuite/id.test +47 -0
- regina/sageRegina/testsuite/index.out +2 -0
- regina/sageRegina/testsuite/index.test +43 -0
- regina/sageRegina/testsuite/integer.out +74 -0
- regina/sageRegina/testsuite/integer.test +56 -0
- regina/sageRegina/testsuite/italian.orb +90 -0
- regina/sageRegina/testsuite/iterators.out +118 -0
- regina/sageRegina/testsuite/iterators.test +128 -0
- regina/sageRegina/testsuite/knotted-Y.orb +47 -0
- regina/sageRegina/testsuite/listener.out +43 -0
- regina/sageRegina/testsuite/listener.test +101 -0
- regina/sageRegina/testsuite/listview.out +416 -0
- regina/sageRegina/testsuite/listview.test +253 -0
- regina/sageRegina/testsuite/lookup.out +13 -0
- regina/sageRegina/testsuite/lookup.test +44 -0
- regina/sageRegina/testsuite/memory1.out +62 -0
- regina/sageRegina/testsuite/memory1.test +154 -0
- regina/sageRegina/testsuite/memory2.out +62 -0
- regina/sageRegina/testsuite/memory2.test +124 -0
- regina/sageRegina/testsuite/memory3.out +92 -0
- regina/sageRegina/testsuite/memory3.test +216 -0
- regina/sageRegina/testsuite/misc.out +7 -0
- regina/sageRegina/testsuite/misc.test +56 -0
- regina/sageRegina/testsuite/operators.out +129 -0
- regina/sageRegina/testsuite/operators.test +61 -0
- regina/sageRegina/testsuite/orb.out +441 -0
- regina/sageRegina/testsuite/orb.test +49 -0
- regina/sageRegina/testsuite/pdf.out +4 -0
- regina/sageRegina/testsuite/pdf.test +49 -0
- regina/sageRegina/testsuite/perm.out +55 -0
- regina/sageRegina/testsuite/perm.test +96 -0
- regina/sageRegina/testsuite/plantri.out +12 -0
- regina/sageRegina/testsuite/plantri.test +60 -0
- regina/sageRegina/testsuite/presentations.out +11 -0
- regina/sageRegina/testsuite/presentations.test +61 -0
- regina/sageRegina/testsuite/refs.out +51 -0
- regina/sageRegina/testsuite/refs.test +128 -0
- regina/sageRegina/testsuite/repr.out +951 -0
- regina/sageRegina/testsuite/repr.out.v2 +951 -0
- regina/sageRegina/testsuite/repr.test +548 -0
- regina/sageRegina/testsuite/safeheldtype_basic.out +17 -0
- regina/sageRegina/testsuite/safeheldtype_basic.test +113 -0
- regina/sageRegina/testsuite/safeheldtype_packet.out +58 -0
- regina/sageRegina/testsuite/safeheldtype_packet.test +181 -0
- regina/sageRegina/testsuite/sample.pdf +0 -0
- regina/sageRegina/testsuite/sets.out +7 -0
- regina/sageRegina/testsuite/sets.test +44 -0
- regina/sageRegina/testsuite/skeleton.out +308 -0
- regina/sageRegina/testsuite/skeleton.test +54 -0
- regina/sageRegina/testsuite/snappea.out +82 -0
- regina/sageRegina/testsuite/snappea.test +107 -0
- regina/sageRegina/testsuite/snapshot.out +15 -0
- regina/sageRegina/testsuite/snapshot.test +78 -0
- regina/sageRegina/testsuite/sort.out +57 -0
- regina/sageRegina/testsuite/sort.test +53 -0
- regina/sageRegina/testsuite/special.out +4 -0
- regina/sageRegina/testsuite/special.test +47 -0
- regina/sageRegina/testsuite/standardtri.out +12101 -0
- regina/sageRegina/testsuite/standardtri.test +455 -0
- regina/sageRegina/testsuite/surfaces.out +2133 -0
- regina/sageRegina/testsuite/surfaces.test +114 -0
- regina/sageRegina/testsuite/swapping.out +25 -0
- regina/sageRegina/testsuite/swapping.test +88 -0
- regina/sageRegina/testsuite/testall.in +176 -0
- regina/sageRegina/testsuite/testbasic.in +279 -0
- regina/sageRegina/testsuite/testcallback.in +150 -0
- regina/sageRegina/testsuite/testsub.in +150 -0
- regina/sageRegina/testsuite/theta_in_solid_torus.orb +65 -0
- regina/sageRegina/testsuite/tightencode.out +40 -0
- regina/sageRegina/testsuite/tightencode.test +108 -0
- regina/sageRegina/testsuite/treedecomp.out +135 -0
- regina/sageRegina/testsuite/treedecomp.test +66 -0
- regina/sageRegina/testsuite/treetraversal.out +52 -0
- regina/sageRegina/testsuite/treetraversal.test +190 -0
- regina/sageRegina/testsuite/trigeneral.out +1251 -0
- regina/sageRegina/testsuite/trigeneral.test +155 -0
- regina/sageRegina/testsuite/utf8.out +42 -0
- regina/sageRegina/testsuite/utf8.test +94 -0
- regina/sageRegina/version.py +5 -0
- regina/sageSetup.py +41 -0
- regina/test.py +6 -0
- regina-7.3.1.1.dist-info/METADATA +109 -0
- regina-7.3.1.1.dist-info/RECORD +163 -0
- regina-7.3.1.1.dist-info/WHEEL +6 -0
- regina-7.3.1.1.dist-info/top_level.txt +4 -0
- regina.libs/libbz2-a273e504.so.1.0.6 +0 -0
- regina.libs/libgmp-afec2dd4.so.10.2.0 +0 -0
- regina.libs/libgmpxx-25f6cf8d.so.4.4.0 +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
2 Z
|
|
2
|
+
Z + Z_5
|
|
3
|
+
2 Z
|
|
4
|
+
True
|
|
5
|
+
|
|
6
|
+
2 Z
|
|
7
|
+
Z + Z_5
|
|
8
|
+
2 Z
|
|
9
|
+
True
|
|
10
|
+
|
|
11
|
+
2 Z
|
|
12
|
+
To be changed:
|
|
13
|
+
Size: 4
|
|
14
|
+
Homology: 2 Z
|
|
15
|
+
Was changed:
|
|
16
|
+
Size: 4
|
|
17
|
+
Homology: Z + Z_5
|
|
18
|
+
Z + Z_5
|
|
19
|
+
To be changed:
|
|
20
|
+
Size: 4
|
|
21
|
+
Homology: Z + Z_5
|
|
22
|
+
Was changed:
|
|
23
|
+
Size: 4
|
|
24
|
+
Homology: 2 Z
|
|
25
|
+
2 Z
|
|
26
|
+
To be changed:
|
|
27
|
+
Size: 5
|
|
28
|
+
Homology: 2 Z
|
|
29
|
+
Was changed:
|
|
30
|
+
Null
|
|
31
|
+
True
|
|
32
|
+
|
|
33
|
+
Ideal orientable 3-D triangulation, f = ( 2 4 8 4 ), cusps: [ vertex 1: (-3, 7), vertex 0 ]
|
|
34
|
+
|
|
35
|
+
Size of the skeleton:
|
|
36
|
+
Tetrahedra: 4
|
|
37
|
+
Triangles: 8
|
|
38
|
+
Edges: 4
|
|
39
|
+
Vertices: 2
|
|
40
|
+
|
|
41
|
+
Tetrahedron gluing:
|
|
42
|
+
Tet | glued to: (012) (013) (023) (123)
|
|
43
|
+
-----+-------------------------------------------------------
|
|
44
|
+
0 | 1 (320) 3 (230) 3 (231) 1 (120)
|
|
45
|
+
1 | 0 (312) 2 (213) 0 (210) 2 (023)
|
|
46
|
+
2 | 3 (130) 3 (012) 1 (123) 1 (103)
|
|
47
|
+
3 | 2 (013) 2 (201) 0 (301) 0 (302)
|
|
48
|
+
|
|
49
|
+
Vertices:
|
|
50
|
+
Tet | vertex: 0 1 2 3
|
|
51
|
+
-----+--------------------------
|
|
52
|
+
0 | 0 1 1 1
|
|
53
|
+
1 | 1 1 1 0
|
|
54
|
+
2 | 1 1 1 0
|
|
55
|
+
3 | 1 1 0 1
|
|
56
|
+
|
|
57
|
+
Edges:
|
|
58
|
+
Tet | edge: 01 02 03 12 13 23
|
|
59
|
+
-----+--------------------------------
|
|
60
|
+
0 | 0 0 1 2 3 2
|
|
61
|
+
1 | 3 2 0 2 1 0
|
|
62
|
+
2 | 2 2 1 3 1 0
|
|
63
|
+
3 | 2 1 3 1 2 0
|
|
64
|
+
|
|
65
|
+
Triangles:
|
|
66
|
+
Tet | face: 012 013 023 123
|
|
67
|
+
-----+------------------------
|
|
68
|
+
0 | 0 1 2 3
|
|
69
|
+
1 | 3 4 0 5
|
|
70
|
+
2 | 6 7 5 4
|
|
71
|
+
3 | 7 6 1 2
|
|
72
|
+
|
|
73
|
+
Tetrahedron shapes:
|
|
74
|
+
0: ( 0.960267, 1.2835 )
|
|
75
|
+
1: ( -0.0397327, 1.2835 )
|
|
76
|
+
2: ( 0.381077, 0.47042 )
|
|
77
|
+
3: ( 0.626279, 0.499517 )
|
|
78
|
+
|
|
79
|
+
Cusps:
|
|
80
|
+
0: Vertex 1, filled (-3, 7)
|
|
81
|
+
1: Vertex 0, complete
|
|
82
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2019-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Tests involving SnapPea triangulations.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
class Watcher(PacketListener):
|
|
35
|
+
def packetToBeChanged(self, packet):
|
|
36
|
+
print('To be changed:')
|
|
37
|
+
if packet.isNull():
|
|
38
|
+
print(' Null')
|
|
39
|
+
else:
|
|
40
|
+
print(' Size:', packet.size())
|
|
41
|
+
print(' Homology:', packet.homologyFilled())
|
|
42
|
+
def packetWasChanged(self, packet):
|
|
43
|
+
print('Was changed:')
|
|
44
|
+
if packet.isNull():
|
|
45
|
+
print(' Null')
|
|
46
|
+
else:
|
|
47
|
+
print(' Size:', packet.size())
|
|
48
|
+
print(' Homology:', packet.homologyFilled())
|
|
49
|
+
|
|
50
|
+
w = Watcher()
|
|
51
|
+
|
|
52
|
+
# Without a packet:
|
|
53
|
+
|
|
54
|
+
t = SnapPeaTriangulation(Example3.whiteheadLink())
|
|
55
|
+
|
|
56
|
+
print(t.homologyFilled())
|
|
57
|
+
dummy = t.fill(3, 4, 0)
|
|
58
|
+
print(t.homologyFilled())
|
|
59
|
+
t.unfill()
|
|
60
|
+
print(t.homologyFilled())
|
|
61
|
+
dummy = t.pachner(t.triangle(0))
|
|
62
|
+
print(t.isNull())
|
|
63
|
+
|
|
64
|
+
print()
|
|
65
|
+
|
|
66
|
+
# With a packet, but without a listener:
|
|
67
|
+
|
|
68
|
+
t = PacketOfSnapPeaTriangulation(Example3.whiteheadLink())
|
|
69
|
+
|
|
70
|
+
print(t.homologyFilled())
|
|
71
|
+
dummy = t.fill(3, 4, 0)
|
|
72
|
+
print(t.homologyFilled())
|
|
73
|
+
t.unfill()
|
|
74
|
+
print(t.homologyFilled())
|
|
75
|
+
dummy = t.pachner(t.triangle(0))
|
|
76
|
+
print(t.isNull())
|
|
77
|
+
|
|
78
|
+
print()
|
|
79
|
+
|
|
80
|
+
# With a packet and a listener:
|
|
81
|
+
|
|
82
|
+
t = PacketOfSnapPeaTriangulation(Example3.whiteheadLink())
|
|
83
|
+
dummy = t.listen(w)
|
|
84
|
+
|
|
85
|
+
print(t.homologyFilled())
|
|
86
|
+
dummy = t.fill(3, 4, 0)
|
|
87
|
+
print(t.homologyFilled())
|
|
88
|
+
t.unfill()
|
|
89
|
+
print(t.homologyFilled())
|
|
90
|
+
dummy = t.pachner(t.triangle(0))
|
|
91
|
+
# The watcher should have given incorrect output at this point, since
|
|
92
|
+
# packetToBeChanged is currently called too late (after the Regina
|
|
93
|
+
# changes but before the SnapPea triangulation is nullified).
|
|
94
|
+
# Specifically, we should see the wrong size() being output.
|
|
95
|
+
# See the SnapPeaTriangulation class notes for details on this issue.
|
|
96
|
+
print(t.isNull())
|
|
97
|
+
|
|
98
|
+
print()
|
|
99
|
+
|
|
100
|
+
# Make sure we get the SnapPeaTriangulation output functions, not the
|
|
101
|
+
# inherited ones from Triangulation3.
|
|
102
|
+
|
|
103
|
+
t = SnapPeaTriangulation(ExampleLink.whitehead())
|
|
104
|
+
dummy = t.fill(-3,7)
|
|
105
|
+
print(t.str())
|
|
106
|
+
print()
|
|
107
|
+
print(t.detail())
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
eLPkbdcddhgggb False
|
|
2
|
+
18 vertex angle structures (no restrictions)
|
|
3
|
+
eLPkbdcddhgggb
|
|
4
|
+
hLLLQkbcefgfgghgtlagks False
|
|
5
|
+
eLPkbdcddhgggb True
|
|
6
|
+
Step 1
|
|
7
|
+
Destroying: original
|
|
8
|
+
Step 2
|
|
9
|
+
Step 3
|
|
10
|
+
|
|
11
|
+
eLPkbdcddhgggb False
|
|
12
|
+
18 vertex angle structures (no restrictions)
|
|
13
|
+
eLPkbdcddhgggb
|
|
14
|
+
a False
|
|
15
|
+
eLPkbdcddhgggb True
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2015-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Tests Regina's mechanism for snapshotting triangulations.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
class Watcher(PacketListener):
|
|
35
|
+
def __init__(self, packet, label):
|
|
36
|
+
PacketListener.__init__(self)
|
|
37
|
+
packet.setLabel(label)
|
|
38
|
+
packet.listen(self)
|
|
39
|
+
def packetBeingDestroyed(self, packet):
|
|
40
|
+
print('Destroying: ' + packet.label())
|
|
41
|
+
|
|
42
|
+
# Make sure that snapshotting works.
|
|
43
|
+
|
|
44
|
+
t = PacketOfTriangulation3(Example3.whiteheadLink())
|
|
45
|
+
w1 = Watcher(t, 'original')
|
|
46
|
+
print(t.isoSig(), t.isReadOnlySnapshot())
|
|
47
|
+
|
|
48
|
+
a = AngleStructures(t)
|
|
49
|
+
print(a)
|
|
50
|
+
print(a.triangulation().isoSig())
|
|
51
|
+
|
|
52
|
+
dummy = a.triangulation().pachner(t.tetrahedron(0))
|
|
53
|
+
print(t.isoSig(), t.isReadOnlySnapshot())
|
|
54
|
+
print(a.triangulation().isoSig(), a.triangulation().isReadOnlySnapshot())
|
|
55
|
+
|
|
56
|
+
print('Step 1')
|
|
57
|
+
t = None
|
|
58
|
+
print('Step 2')
|
|
59
|
+
a = None
|
|
60
|
+
# This should destroy a.triangulation(), but since that does not have a
|
|
61
|
+
# packet wrapper we cannot observe its destruction here.
|
|
62
|
+
print('Step 3')
|
|
63
|
+
|
|
64
|
+
print()
|
|
65
|
+
|
|
66
|
+
# Test that snapshotting happens when we nullify a SnapPea triangulation.
|
|
67
|
+
|
|
68
|
+
t = ExampleSnapPea.whiteheadLink()
|
|
69
|
+
print(t.isoSig(), t.isReadOnlySnapshot())
|
|
70
|
+
|
|
71
|
+
a = AngleStructures(t)
|
|
72
|
+
print(a)
|
|
73
|
+
print(a.triangulation().isoSig())
|
|
74
|
+
|
|
75
|
+
dummy = a.triangulation().pachner(t.tetrahedron(0))
|
|
76
|
+
print(t.isoSig(), t.isReadOnlySnapshot()) # should be an empty triangulation
|
|
77
|
+
print(a.triangulation().isoSig(), a.triangulation().isReadOnlySnapshot())
|
|
78
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Embedded, vertex surfaces
|
|
2
|
+
Coordinates: Standard normal (tri-quad)
|
|
3
|
+
Number of surfaces is 7
|
|
4
|
+
0 1 0 1 ; 0 1 0 || 0 0 1 1 ; 1 0 0 || 1 0 1 0 ; 0 1 0 || 0 1 0 1 ; 0 1 0 || 1 1 0 0 ; 1 0 0
|
|
5
|
+
1 1 0 0 ; 1 0 0 || 1 0 0 1 ; 0 0 1 || 1 0 0 1 ; 0 0 1 || 0 1 1 0 ; 0 0 1 || 0 0 1 1 ; 1 0 0
|
|
6
|
+
0 0 1 1 ; 1 0 0 || 0 1 0 1 ; 0 1 0 || 0 1 0 1 ; 0 1 0 || 1 1 0 0 ; 1 0 0 || 1 0 1 0 ; 0 1 0
|
|
7
|
+
0 1 1 0 ; 0 0 1 || 0 1 1 0 ; 0 0 1 || 1 1 0 0 ; 1 0 0 || 1 0 1 0 ; 0 1 0 || 0 1 0 1 ; 0 1 0
|
|
8
|
+
1 0 0 1 ; 0 0 1 || 1 1 0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
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2007-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Provides tests for sorting functions that use callbacks.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
def sortInc(a, b):
|
|
35
|
+
return a.str() < b.str()
|
|
36
|
+
|
|
37
|
+
def sortDec(a, b):
|
|
38
|
+
return a.str() > b.str()
|
|
39
|
+
|
|
40
|
+
s = NormalSurfaces(Example3.poincare(), NS_STANDARD)
|
|
41
|
+
print(s.detail())
|
|
42
|
+
s.sort(sortInc)
|
|
43
|
+
print(s.detail())
|
|
44
|
+
s.sort(sortDec)
|
|
45
|
+
print(s.detail())
|
|
46
|
+
|
|
47
|
+
s = NormalHypersurfaces(Example4.s3xs1(), HS_PRISM)
|
|
48
|
+
print(s.detail())
|
|
49
|
+
s.sort(sortInc)
|
|
50
|
+
print(s.detail())
|
|
51
|
+
s.sort(sortDec)
|
|
52
|
+
print(s.detail())
|
|
53
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2015-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Tests special Python functions (__getitem__, __len__, etc.).
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
# The functions below are chosen because they test the internal translations
|
|
35
|
+
# between C++ types and Python types.
|
|
36
|
+
|
|
37
|
+
t = Example3.poincare()
|
|
38
|
+
s = NormalSurfaces(t, NS_STANDARD)
|
|
39
|
+
|
|
40
|
+
print(len(s))
|
|
41
|
+
print(s[1])
|
|
42
|
+
|
|
43
|
+
c = Cyclotomic()
|
|
44
|
+
print(c, len(c), 'True' if c else 'False')
|
|
45
|
+
|
|
46
|
+
c = Cyclotomic(3)
|
|
47
|
+
print(c, len(c), 'True' if c else 'False')
|