From cbe641e93ce01d1be407eb1f57499eb6632d61cd Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 11 Sep 2018 19:18:44 +0200 Subject: [PATCH 1/3] Explicit tulle required in comprehension in Python 3 --- active_projects/eola2/determinant_puzzle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/active_projects/eola2/determinant_puzzle.py b/active_projects/eola2/determinant_puzzle.py index 6f335463..aeda8480 100644 --- a/active_projects/eola2/determinant_puzzle.py +++ b/active_projects/eola2/determinant_puzzle.py @@ -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), From acb362dd7f10db47af73ab423c0d14cb17903cc1 Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 11 Sep 2018 19:22:42 +0200 Subject: [PATCH 2/3] Update bayes_footnote.py --- active_projects/eop/bayes_footnote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/active_projects/eop/bayes_footnote.py b/active_projects/eop/bayes_footnote.py index 98137182..841ad8a2 100644 --- a/active_projects/eop/bayes_footnote.py +++ b/active_projects/eop/bayes_footnote.py @@ -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() From e48361a6380e0aecc10270f6c3fd3f8ccaa60f08 Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 11 Sep 2018 19:24:22 +0200 Subject: [PATCH 3/3] Update bayes.py --- active_projects/eop/bayes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/active_projects/eop/bayes.py b/active_projects/eop/bayes.py index 0ffd0bdc..bbf62642 100644 --- a/active_projects/eop/bayes.py +++ b/active_projects/eop/bayes.py @@ -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)