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

Commit 800d88d

Browse files
altered logging format
1 parent d3ad665 commit 800d88d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sage/geometry/solid_angle.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -223,22 +223,22 @@ def solid_angle_2d(A):
223223
sage: A = matrix([[1,0],[0,1],[-1,1]])
224224
sage: logging.disable(logging.NOTSET)
225225
sage: solid_angle_2d(A)
226-
INFO:Decompose into simplicial subcones
226+
INFO: Decompose into simplicial subcones
227227
[1 0]
228228
[0 1],
229229
[ 0 1]
230230
[-1 1]
231-
INFO:Solid angles of the subcones are [1/4, 1/2*arccos(1/2*sqrt(2))/pi]
231+
INFO: Solid angles of the subcones are [1/4, 1/2*arccos(1/2*sqrt(2))/pi]
232232
1/2*arccos(1/2*sqrt(2))/pi + 1/4
233233
234234
sage: A = matrix([[1,0],[0,1],[1,1]])
235235
sage: solid_angle_2d(A)
236-
INFO:Decompose into simplicial subcones
236+
INFO: Decompose into simplicial subcones
237237
[1 0]
238238
[1 1],
239239
[0 1]
240240
[1 1]
241-
INFO:Solid angles of the subcones are [1/2*arccos(1/2*sqrt(2))/pi, 1/2*arccos(1/2*sqrt(2))/pi]
241+
INFO: Solid angles of the subcones are [1/2*arccos(1/2*sqrt(2))/pi, 1/2*arccos(1/2*sqrt(2))/pi]
242242
arccos(1/2*sqrt(2))/pi
243243
244244
The following examples illustrate how the solid angle measure can equal
@@ -269,7 +269,7 @@ def solid_angle_2d(A):
269269
0
270270
"""
271271
logging.getLogger().setLevel(logging.INFO)
272-
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
272+
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
273273
if not is_Matrix(A):
274274
A = matrix(A)
275275
P = A[0][0].parent()

0 commit comments

Comments
 (0)