From 1e621e82781342e4a1e959f7aa99f21801b3ffb4 Mon Sep 17 00:00:00 2001 From: slowy07 Date: Sat, 7 Aug 2021 22:25:26 +0700 Subject: [PATCH] fix: fix typo spelling grammar --- docs/source/getting_started/configuration.rst | 2 +- docs/source/getting_started/example_scenes.rst | 2 +- example_scenes.py | 2 +- manimlib/animation/transform.py | 4 ++-- manimlib/mobject/mobject.py | 2 +- manimlib/mobject/mobject_update_utils.py | 2 +- manimlib/mobject/shape_matchers.py | 2 +- manimlib/once_useful_constructs/graph_theory.py | 2 +- manimlib/once_useful_constructs/region.py | 2 +- manimlib/scene/scene.py | 2 +- manimlib/scene/scene_file_writer.py | 2 +- manimlib/utils/bezier.py | 2 +- manimlib/utils/iterables.py | 2 +- manimlib/window.py | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/source/getting_started/configuration.rst b/docs/source/getting_started/configuration.rst index eb981b19..88a9e603 100644 --- a/docs/source/getting_started/configuration.rst +++ b/docs/source/getting_started/configuration.rst @@ -52,7 +52,7 @@ flag abbr function ``--finder`` Show the output file in finder ``--config`` Guide for automatic configuration ``--file_name FILE_NAME`` Name for the movie or image file -``--start_at_animation_number START_AT_ANIMATION_NUMBER`` ``-n`` Start rendering not from the first animation, but from another, specified by its index. If you passin two comma separated values, e.g. "3,6", it will end the rendering at the second value. +``--start_at_animation_number START_AT_ANIMATION_NUMBER`` ``-n`` Start rendering not from the first animation, but from another, specified by its index. If you passing two comma separated values, e.g. "3,6", it will end the rendering at the second value. ``--resolution RESOLUTION`` ``-r`` Resolution, passed as "WxH", e.g. "1920x1080" ``--frame_rate FRAME_RATE`` Frame rate, as an integer ``--color COLOR`` ``-c`` Background color diff --git a/docs/source/getting_started/example_scenes.rst b/docs/source/getting_started/example_scenes.rst index a36caf83..ec0ffe7b 100644 --- a/docs/source/getting_started/example_scenes.rst +++ b/docs/source/getting_started/example_scenes.rst @@ -187,7 +187,7 @@ TexTransformExample # Passing in muliple arguments to Tex will result # in the same expression as if those arguments had # been joined together, except that the submobject - # heirarchy of the resulting mobject ensure that the + # hierarchy of the resulting mobject ensure that the # Tex mobject has a subject corresponding to # each of these strings. For example, the Tex mobject # below will have 5 subjects, corresponding to the diff --git a/example_scenes.py b/example_scenes.py index a3a4171f..bfdb4c49 100644 --- a/example_scenes.py +++ b/example_scenes.py @@ -164,7 +164,7 @@ class TexTransformExample(Scene): # Passing in muliple arguments to Tex will result # in the same expression as if those arguments had # been joined together, except that the submobject - # heirarchy of the resulting mobject ensure that the + # hierarchy of the resulting mobject ensure that the # Tex mobject has a subject corresponding to # each of these strings. For example, the Tex mobject # below will have 5 subjects, corresponding to the diff --git a/manimlib/animation/transform.py b/manimlib/animation/transform.py index d76047ff..75160af7 100644 --- a/manimlib/animation/transform.py +++ b/manimlib/animation/transform.py @@ -44,7 +44,7 @@ class Transform(Animation): self.check_target_mobject_validity() # Use a copy of target_mobject for the align_data_and_family # call so that the actual target_mobject stays - # preserved, since calling allign_data will potentailly + # preserved, since calling allign_data will potentially # change the structure of both arguments self.target_copy = self.target_mobject.copy() self.mobject.align_data_and_family(self.target_copy) @@ -161,7 +161,7 @@ class ApplyMethod(Transform): method is a method of Mobject, *args are arguments for that method. Key word arguments should be passed in as the last arg, as a dict, since **kwargs is for - configuration of the transform itslef + configuration of the transform itself Relies on the fact that mobject methods return the mobject """ diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index 31837061..73c5c8df 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -1445,7 +1445,7 @@ class Mobject(object): return result def check_data_alignment(self, array, data_key): - # Makes sure that self.data[key] can be brodcast into + # Makes sure that self.data[key] can be broadcast into # the given array, meaning its length has to be either 1 # or the length of the array d_len = len(self.data[data_key]) diff --git a/manimlib/mobject/mobject_update_utils.py b/manimlib/mobject/mobject_update_utils.py index db59821f..152ffd99 100644 --- a/manimlib/mobject/mobject_update_utils.py +++ b/manimlib/mobject/mobject_update_utils.py @@ -23,7 +23,7 @@ def always(method, *args, **kwargs): def f_always(method, *arg_generators, **kwargs): """ More functional version of always, where instead - of taking in args, it takes in functions which ouput + of taking in args, it takes in functions which output the relevant arguments. """ assert_is_mobject_method(method) diff --git a/manimlib/mobject/shape_matchers.py b/manimlib/mobject/shape_matchers.py index 9b320740..8a279c6c 100644 --- a/manimlib/mobject/shape_matchers.py +++ b/manimlib/mobject/shape_matchers.py @@ -47,7 +47,7 @@ class BackgroundRectangle(SurroundingRectangle): fill_opacity=None, family=True ): - # Unchangable style, except for fill_opacity + # Unchangeable style, except for fill_opacity VMobject.set_style_data( self, stroke_color=BLACK, diff --git a/manimlib/once_useful_constructs/graph_theory.py b/manimlib/once_useful_constructs/graph_theory.py index 832a8cba..820d3b7a 100644 --- a/manimlib/once_useful_constructs/graph_theory.py +++ b/manimlib/once_useful_constructs/graph_theory.py @@ -333,7 +333,7 @@ class DiscreteGraphScene(Scene): x_coord_of = {root: 0} y_coord_of = {root: bottom} # width to allocate to a given node, computed as - # the maxium number of decendents in a single generation, + # the maximum number of decendents in a single generation, # minus 1, multiplied by x_sep width_of = {} for index in indices: diff --git a/manimlib/once_useful_constructs/region.py b/manimlib/once_useful_constructs/region.py index ab76ac10..1bc95a05 100644 --- a/manimlib/once_useful_constructs/region.py +++ b/manimlib/once_useful_constructs/region.py @@ -5,7 +5,7 @@ from manimlib.constants import * from manimlib.mobject.mobject import Mobject from manimlib.utils.iterables import adjacent_pairs -# Warning: This is all now pretty depricated, and should not be expected to work +# Warning: This is all now pretty deprecated, and should not be expected to work class Region(Mobject): diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py index a65b662e..f25c5eb2 100644 --- a/manimlib/scene/scene.py +++ b/manimlib/scene/scene.py @@ -123,7 +123,7 @@ class Scene(object): # Have the frame update after each command shell.events.register('post_run_cell', lambda *a, **kw: self.update_frame()) # Use the locals of the caller as the local namespace - # once embeded, and add a few custom shortcuts + # once embedded, and add a few custom shortcuts local_ns = inspect.currentframe().f_back.f_locals local_ns["touch"] = self.interact for term in ("play", "wait", "add", "remove", "clear", "save_state", "restore"): diff --git a/manimlib/scene/scene_file_writer.py b/manimlib/scene/scene_file_writer.py index 153dff74..fefdaa1d 100644 --- a/manimlib/scene/scene_file_writer.py +++ b/manimlib/scene/scene_file_writer.py @@ -183,7 +183,7 @@ class SceneFileWriter(object): '-s', f'{width}x{height}', # size of one frame '-pix_fmt', 'rgba', '-r', str(fps), # frames per second - '-i', '-', # The imput comes from a pipe + '-i', '-', # The input comes from a pipe '-vf', 'vflip', '-an', # Tells FFMPEG not to expect any audio '-loglevel', 'error', diff --git a/manimlib/utils/bezier.py b/manimlib/utils/bezier.py index 8a3f6692..54d1876b 100644 --- a/manimlib/utils/bezier.py +++ b/manimlib/utils/bezier.py @@ -157,7 +157,7 @@ def get_smooth_cubic_bezier_handle_points(points): l, u = 2, 1 # diag is a representation of the matrix in diagonal form # See https://www.particleincell.com/2012/bezier-splines/ - # for how to arive at these equations + # for how to arrive at these equations diag = np.zeros((l + u + 1, 2 * num_handles)) diag[0, 1::2] = -1 diag[0, 2::2] = 1 diff --git a/manimlib/utils/iterables.py b/manimlib/utils/iterables.py index 4fd0582c..d94af506 100644 --- a/manimlib/utils/iterables.py +++ b/manimlib/utils/iterables.py @@ -5,7 +5,7 @@ import numpy as np def remove_list_redundancies(l): """ Used instead of list(set(l)) to maintain order - Keeps the last occurance of each element + Keeps the last occurrence of each element """ reversed_result = [] used = set() diff --git a/manimlib/window.py b/manimlib/window.py index 033405d3..ed3a6fb5 100644 --- a/manimlib/window.py +++ b/manimlib/window.py @@ -48,7 +48,7 @@ class Window(PygletWindow): return tuple(map(int, custom_position.split(","))) # Alternatively, it might be specified with a string like - # UR, OO, DL, etc. specifiying what corner it should go to + # UR, OO, DL, etc. specifying what corner it should go to char_to_n = {"L": 0, "U": 0, "O": 1, "R": 2, "D": 2} width_diff = monitor.width - window_width height_diff = monitor.height - window_height