Skip to content

Commit 4174d17

Browse files
author
Release Manager
committed
gh-40414: Add some missing "long time" annotations Fix a few CI warnings by adding `# long time`, and speed up one test by limiting the number of examples to a random subset. URL: #40414 Reported by: Michael Orlitzky Reviewer(s):
2 parents 84f20f8 + ba46dfa commit 4174d17

File tree

8 files changed

+26
-10
lines changed

8 files changed

+26
-10
lines changed

src/doc/en/thematic_tutorials/vector_calculus/vector_calc_change.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ the above call ``E.spherical_coordinates()``::
138138
These formulas are automatically used if we ask to plot the grid of spherical
139139
coordinates in terms of Cartesian coordinates::
140140

141+
sage: # long time
141142
sage: spherical.plot(cartesian, color={r:'red', th:'green', ph:'orange'})
142143
Graphics3d Object
143144

src/doc/en/thematic_tutorials/vector_calculus/vector_calc_curvilinear.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ The Laplacian of a scalar field::
232232

233233
The Laplacian of a vector field::
234234

235+
sage: # long time
235236
sage: Du = laplacian(u)
236237
sage: Du.display()
237238
Delta(u) = ((r^2*d^2(u_r)/dr^2 + 2*r*d(u_r)/dr - 2*u_r(r, th, ph)
@@ -247,7 +248,7 @@ The Laplacian of a vector field::
247248
Since this expression is quite lengthy, we may ask for a display component by
248249
component::
249250

250-
sage: Du.display_comp()
251+
sage: Du.display_comp() # long time
251252
Delta(u)^1 = ((r^2*d^2(u_r)/dr^2 + 2*r*d(u_r)/dr - 2*u_r(r, th, ph) + d^2(u_r)/dth^2
252253
- 2*d(u_theta)/dth)*sin(th)^2 - ((2*u_theta(r, th, ph) - d(u_r)/dth)*cos(th)
253254
+ 2*d(u_phi)/dph)*sin(th) + d^2(u_r)/dph^2)/(r^2*sin(th)^2)
@@ -260,6 +261,7 @@ component::
260261

261262
We may expand each component::
262263

264+
sage: # long time
263265
sage: for i in E.irange():
264266
....: s = Du[i].expand()
265267
sage: Du.display_comp()

src/sage/combinat/symmetric_group_algebra.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,7 @@ def ladder_idempotent(self, la):
13131313
modules (which are the :meth:`Specht modules <specht_module>`
13141314
and also projective modules)::
13151315
1316+
sage: # long time
13161317
sage: SGA = SymmetricGroupAlgebra(QQ, 5)
13171318
sage: for la in Partitions(SGA.n):
13181319
....: idem = SGA.ladder_idempotent(la)

src/sage/doctest/forker.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,6 +2197,7 @@ class should be accessed by the child process.
21972197
21982198
EXAMPLES::
21992199
2200+
sage: # long time
22002201
sage: from sage.doctest.forker import DocTestWorker, DocTestTask
22012202
sage: from sage.doctest.sources import FileDocTestSource
22022203
sage: from sage.doctest.reporting import DocTestReporter
@@ -2321,6 +2322,7 @@ def start(self):
23212322
23222323
TESTS::
23232324
2325+
sage: # long time
23242326
sage: from sage.doctest.forker import DocTestWorker, DocTestTask
23252327
sage: from sage.doctest.sources import FileDocTestSource
23262328
sage: from sage.doctest.reporting import DocTestReporter
@@ -2360,6 +2362,7 @@ def read_messages(self):
23602362
23612363
EXAMPLES::
23622364
2365+
sage: # long time
23632366
sage: from sage.doctest.forker import DocTestWorker, DocTestTask
23642367
sage: from sage.doctest.sources import FileDocTestSource
23652368
sage: from sage.doctest.reporting import DocTestReporter
@@ -2394,6 +2397,7 @@ def save_result_output(self):
23942397
23952398
EXAMPLES::
23962399
2400+
sage: # long time
23972401
sage: from sage.doctest.forker import DocTestWorker, DocTestTask
23982402
sage: from sage.doctest.sources import FileDocTestSource
23992403
sage: from sage.doctest.reporting import DocTestReporter

src/sage/dynamics/arithmetic_dynamics/projective_ds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6972,7 +6972,7 @@ def Lattes_to_curve(self, return_conjugation=False, check_lattes=False):
69726972
sage: P.<x,y>=ProjectiveSpace(QQbar, 1)
69736973
sage: E=EllipticCurve([1, 2])
69746974
sage: f=P.Lattes_map(E, 2)
6975-
sage: f.Lattes_to_curve(check_lattes=true)
6975+
sage: f.Lattes_to_curve(check_lattes=true) # long time
69766976
Elliptic Curve defined by y^2 = x^3 + x + 2 over Rational Field
69776977
69786978
"""

src/sage/graphs/hypergraph_generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def BinomialRandomUniform(self, n, k, p):
304304
305305
EXAMPLES::
306306
307-
sage: hypergraphs.BinomialRandomUniform(50, 3, 1).num_blocks() # needs numpy
307+
sage: hypergraphs.BinomialRandomUniform(50, 3, 1).num_blocks() # needs numpy, long time
308308
19600
309309
sage: hypergraphs.BinomialRandomUniform(50, 3, 0).num_blocks() # needs numpy
310310
0

src/sage/groups/perm_gps/permgroup_named.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3505,16 +3505,24 @@ class SmallPermutationGroup(PermutationGroup_generic):
35053505
Group of order 12 and GAP Id 4 as a permutation group
35063506
sage: G.gens()
35073507
((4,5), (1,2), (3,4,5))
3508-
sage: G.character_table() # needs sage.rings.number_field
3508+
sage: G.character_table() # needs sage.rings.number_field
35093509
[ 1 1 1 1 1 1]
35103510
[ 1 -1 1 -1 1 -1]
35113511
[ 1 -1 1 1 -1 1]
35123512
[ 1 1 1 -1 -1 -1]
35133513
[ 2 0 -1 -2 0 1]
35143514
[ 2 0 -1 2 0 -1]
35153515
sage: def numgps(n): return ZZ(libgap.NumberSmallGroups(n))
3516-
sage: all(SmallPermutationGroup(n,k).id() == [n,k]
3517-
....: for n in [1..64] for k in [1..numgps(n)]) # long time (180s)
3516+
sage: # verify at most five n and k, randomly, to save time
3517+
sage: from random import sample
3518+
sage: ns = sample([1..64], 5)
3519+
sage: def ks(n):
3520+
....: ngps = numgps(n)
3521+
....: ssize = min(5, ngps)
3522+
....: return sample([1..ngps], ssize)
3523+
sage: all(SmallPermutationGroup(n,k).id() == [n,k] # long time
3524+
....: for n in ns
3525+
....: for k in ks(n))
35183526
True
35193527
sage: H = SmallPermutationGroup(6,1)
35203528
sage: H.is_abelian()

src/sage/interacts/test_jupyter.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Test all interacts from the Sage interact library::
205205
Exact value of the integral \(\displaystyle\int_{0}^{2}x^{2} +
206206
1\,\mathrm{d}x=4.666666666666668\)
207207

208-
sage: test(interacts.calculus.function_tool)
208+
sage: test(interacts.calculus.function_tool) # long time
209209
...Interactive function <function function_tool at ...> with 7 widgets
210210
f: EvalText(value='sin(x)', description='f')
211211
g: EvalText(value='cos(x)', description='g')
@@ -218,7 +218,7 @@ Test all interacts from the Sage interact library::
218218
<center><font color="green">\(g = \cos\left(x\right)\)</font></center>
219219
<center><font color="blue"><b>\(h = f = \sin\left(x\right)\)</b></font></center>
220220

221-
sage: test(interacts.fractals.mandelbrot)
221+
sage: test(interacts.fractals.mandelbrot) # long time
222222
...Interactive function <function mandelbrot at ...> with 6 widgets
223223
expo: FloatSlider(value=2.0, description='expo', max=10.0, min=-10.0)
224224
iterations: IntSlider(value=20, description='# iterations', min=1)
@@ -229,7 +229,7 @@ Test all interacts from the Sage interact library::
229229
<h2>Mandelbrot Fractal</h2>
230230
Recursive Formula: \(z \leftarrow z^{2.00} + c\) for \(c \in \mathbb{C}\)
231231

232-
sage: test(interacts.fractals.julia)
232+
sage: test(interacts.fractals.julia) # long time
233233
...Interactive function <function julia at ...> with 8 widgets
234234
expo: FloatSlider(value=2.0, description='expo', max=10.0, min=-10.0)
235235
c_real: FloatSlider(value=0.5, description='real part const.', max=2.0, min=-2.0, step=0.01)
@@ -265,7 +265,7 @@ Test all interacts from the Sage interact library::
265265
\(AB = 1.931852\), \(BC = 1.732051\), \(CA = 1.414214\)
266266
Area of triangle \(ABC = 1.183013\)
267267

268-
sage: test(interacts.geometry.special_points)
268+
sage: test(interacts.geometry.special_points) # long time
269269
...Interactive function <function special_points at ...> with 10 widgets
270270
title: HTMLText(value='<h2>Special points in triangle</h2>')
271271
a0: IntSlider(value=30, description='A', max=360)

0 commit comments

Comments
 (0)