mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
fixed imports in new EoP structure
This commit is contained in:
0
active_projects/eop/chapter0/__init__.py
Normal file
0
active_projects/eop/chapter0/__init__.py
Normal file
0
active_projects/eop/chapter1/__init__.py
Normal file
0
active_projects/eop/chapter1/__init__.py
Normal file
@ -1,5 +1,4 @@
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
|
||||
|
||||
class IllustrateAreaModelBayes(Scene):
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from old_projects.eoc.chapter8 import *
|
||||
|
||||
import scipy.special
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
|
||||
|
||||
class IllustrateAreaModelExpectation(Scene):
|
||||
|
@ -1,5 +1,5 @@
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
|
||||
|
||||
class BrickRowScene(PiCreatureScene):
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
|
||||
|
||||
class EntireBrickWall(Scene):
|
||||
|
@ -1,5 +1,5 @@
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
|
||||
class Chapter1OpeningQuote(OpeningQuote):
|
||||
CONFIG = {
|
||||
|
@ -1,12 +1,12 @@
|
||||
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
|
||||
class JustFlipping(Scene):
|
||||
|
||||
def construct(self):
|
||||
|
||||
randy = CoinFlippingPiCreature().shift(2 * DOWN)
|
||||
randy = CoinFlippingPiCreature(color = MAROON_E, flip_height = 1).shift(2 * DOWN)
|
||||
self.add(randy)
|
||||
|
||||
self.wait(2)
|
||||
@ -21,7 +21,7 @@ class JustFlippingWithResults(Scene):
|
||||
|
||||
def construct(self):
|
||||
|
||||
randy = CoinFlippingPiCreature().shift(2 * DOWN)
|
||||
randy = CoinFlippingPiCreature(color = MAROON_E, flip_height = 1).shift(2 * DOWN)
|
||||
self.add(randy)
|
||||
|
||||
self.wait(2)
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
|
||||
class GenericMorphBrickRowIntoHistogram(Scene):
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
|
||||
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
from active_projects.eop.independence import *
|
||||
|
||||
|
||||
class QuizResult(Scene):
|
||||
|
@ -1,8 +1,8 @@
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
|
||||
|
||||
class ShowUncertainty2(Scene):
|
||||
class ShowUncertaintyDarts(Scene):
|
||||
|
||||
|
||||
def throw_darts(self, n, run_time = 1):
|
||||
|
@ -1,5 +1,5 @@
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
|
||||
class ShowUncertaintyDice(Scene):
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from active_projects.eop.reusables import *
|
||||
from active_projects.eop.reusable_imports import *
|
||||
from active_projects.eop.combinations import *
|
||||
from active_projects.eop.independence import *
|
||||
|
||||
import itertools as it
|
||||
|
||||
|
0
active_projects/eop/chapter2/__init__.py
Normal file
0
active_projects/eop/chapter2/__init__.py
Normal file
11
active_projects/eop/reusable_imports.py
Normal file
11
active_projects/eop/reusable_imports.py
Normal file
@ -0,0 +1,11 @@
|
||||
from active_projects.eop.reusables.binary_option import *
|
||||
from active_projects.eop.reusables.brick_row import *
|
||||
from active_projects.eop.reusables.coin_flip_tree import *
|
||||
from active_projects.eop.reusables.coin_flipping_pi_creature import *
|
||||
from active_projects.eop.reusables.coin_stacks import *
|
||||
from active_projects.eop.reusables.dice import *
|
||||
from active_projects.eop.reusables.eop_constants import *
|
||||
from active_projects.eop.reusables.eop_helpers import *
|
||||
from active_projects.eop.reusables.histograms import *
|
||||
from active_projects.eop.reusables.sick_pi_creature import *
|
||||
from active_projects.eop.reusables.upright_coins import *
|
@ -1,4 +1,5 @@
|
||||
from mobject.types.vectorized_mobject import *
|
||||
from mobject.svg.tex_mobject import *
|
||||
|
||||
class BinaryOption(VMobject):
|
||||
|
||||
|
@ -6,7 +6,7 @@ from utils.rate_functions import *
|
||||
from for_3b1b_videos.pi_creature_scene import *
|
||||
from active_projects.eop.reusables.eop_helpers import *
|
||||
from active_projects.eop.reusables.eop_constants import *
|
||||
|
||||
from active_projects.eop.reusables.coin_flipping_pi_creature import *
|
||||
|
||||
|
||||
class PiCreatureCoin(VMobject):
|
||||
@ -46,6 +46,9 @@ class PiCreatureCoin(VMobject):
|
||||
self.add(ridge)
|
||||
|
||||
class CoinFlippingPiCreature(PiCreature):
|
||||
CONFIG = {
|
||||
"flip_height": 3
|
||||
}
|
||||
|
||||
def __init__(self, mode = "coin_flip_1", **kwargs):
|
||||
|
||||
@ -93,6 +96,7 @@ class FlipCoin(AnimationGroup):
|
||||
pi_creature.coin,
|
||||
vector = UP,
|
||||
nb_turns = 5,
|
||||
height = pi_creature.flip_height * pi_creature.get_height(),
|
||||
rate_func = self.coin_rate_func,
|
||||
**kwargs
|
||||
)
|
||||
|
@ -282,8 +282,8 @@ class FlashThroughHistogram(Animation):
|
||||
|
||||
class OutlineableBars(VGroup):
|
||||
|
||||
# A group of bars (rectangles), together with
|
||||
# a method that draws an outline around them,
|
||||
# A group of bars (rectangles), together with
|
||||
# a method that draws an outline around them,
|
||||
# assuming the bars are arranged in a histogram
|
||||
# (aligned at the bottom without gaps).
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
from for_3b1b_videos.pi_creature import *
|
||||
from active_projects.eop.reusables.constants import *
|
||||
from active_projects.eop.reusables.eop_constants import *
|
||||
|
||||
|
||||
class SicklyPiCreature(PiCreature):
|
||||
|
Reference in New Issue
Block a user