mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Merge pull request #289 from cclauss/patch-1
Explicit tuple required in comprehension in Python 3
This commit is contained in:
commit
384895b9a8
3 changed files with 3 additions and 3 deletions
|
@ -98,7 +98,7 @@ class WorkOutNumerically(Scene):
|
|||
non_numbers = VGroup(*[m for m in det if m not in numbers])
|
||||
matrix_numbers = VGroup(*[
|
||||
matrix.mob_matrix[i][j].copy()
|
||||
for i, j in (0, 0), (1, 1), (0, 1), (1, 0)
|
||||
for i, j in ((0, 0), (1, 1), (0, 1), (1, 0))
|
||||
])
|
||||
self.play(
|
||||
LaggedStart(FadeIn, non_numbers, run_time=1),
|
||||
|
|
|
@ -1010,7 +1010,7 @@ class UpdatePokerPrior(SampleSpaceScene):
|
|||
"P(", s, self.double_heart_template, ")",
|
||||
"= ", num
|
||||
)
|
||||
for s, num in ("", p_str), ("\\text{not }", q_str)
|
||||
for s, num in (("", p_str), ("\\text{not }", q_str))
|
||||
]
|
||||
for label in labels:
|
||||
label.scale(0.7)
|
||||
|
|
|
@ -486,7 +486,7 @@ class TryUnitSquareVisual(SampleSpaceScene):
|
|||
TexMobject("P(\\text{Disease})", s1),
|
||||
TexMobject("P(\\text{Not disease})", s2),
|
||||
).scale(0.7)
|
||||
for s1, s2 in ("", ""), ("= 0.001", "= 0.999")
|
||||
for s1, s2 in (("", ""), ("= 0.001", "= 0.999"))
|
||||
]
|
||||
sample_space.get_side_braces_and_labels(initial_labels)
|
||||
sample_space.add_braces_and_labels()
|
||||
|
|
Loading…
Add table
Reference in a new issue