From 5bd44a564f64d07f0711998b9d350c9369d15037 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Mon, 18 Sep 2023 12:57:03 +0800 Subject: [PATCH 1/2] Fix typos Found via `codespell -L nwo,fo,te,ue,nd,ned,noo,bumb,bu,tbe,morg` --- CODE_OF_CONDUCT.md | 2 +- docs/source/quickstart.ipynb | 4 ++-- examples/notebooks/simple.ipynb | 4 ++-- fastplotlib/graphics/_features/_present.py | 2 +- fastplotlib/graphics/selectors/_sync.py | 2 +- fastplotlib/layouts/_base.py | 2 +- fastplotlib/widgets/image.py | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 65efc3352..7b6e4aa27 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -108,7 +108,7 @@ You can report issues to the fastplotlib core team: [Caitlin Lewis](https://github.com/clewis7) If your report involves any members of the fastplotlib core team, or if they feel they have -a conflict of interest in handling it, then they will recuse themselves from +a conflict of interest in handling it, then they will recurse themselves from considering your report. # Incident reporting resolution & Code of Conduct enforcement diff --git a/docs/source/quickstart.ipynb b/docs/source/quickstart.ipynb index aebe04b25..6a3afec33 100644 --- a/docs/source/quickstart.ipynb +++ b/docs/source/quickstart.ipynb @@ -599,7 +599,7 @@ "plot_v.add_image(data=data, name=\"random-image\")\n", "\n", "# a function to update the image_graphic\n", - "# a plot will pass its plot instance to the animation function as an arugment\n", + "# a plot will pass its plot instance to the animation function as an argument\n", "def update_data(plot_instance):\n", " new_data = np.random.rand(512, 512)\n", " plot_instance[\"random-image\"].data = new_data\n", @@ -1073,7 +1073,7 @@ "\n", "plot_l.add_image(img, name=\"image\", cmap=\"gray\")\n", "\n", - "# z axix position -1 so it is below all the lines\n", + "# z axis position -1 so it is below all the lines\n", "plot_l[\"image\"].position_z = -1\n", "plot_l[\"image\"].position_x = -50" ] diff --git a/examples/notebooks/simple.ipynb b/examples/notebooks/simple.ipynb index e994bfba8..69c11d47c 100644 --- a/examples/notebooks/simple.ipynb +++ b/examples/notebooks/simple.ipynb @@ -533,7 +533,7 @@ "plot_v.add_image(data=data, name=\"random-image\")\n", "\n", "# a function to update the image_graphic\n", - "# a plot will pass its plot instance to the animation function as an arugment\n", + "# a plot will pass its plot instance to the animation function as an argument\n", "def update_data(plot_instance):\n", " new_data = np.random.rand(512, 512)\n", " plot_instance[\"random-image\"].data = new_data\n", @@ -952,7 +952,7 @@ "\n", "plot_l.add_image(img[::20, ::20], name=\"image\", cmap=\"gray\")\n", "\n", - "# z axix position -1 so it is below all the lines\n", + "# z axis position -1 so it is below all the lines\n", "plot_l[\"image\"].position_z = -1\n", "plot_l[\"image\"].position_x = -8\n", "plot_l[\"image\"].position_y = -8" diff --git a/fastplotlib/graphics/_features/_present.py b/fastplotlib/graphics/_features/_present.py index ba257e60b..b0bb627c5 100644 --- a/fastplotlib/graphics/_features/_present.py +++ b/fastplotlib/graphics/_features/_present.py @@ -38,7 +38,7 @@ def _set(self, present: bool): if i > 100: raise RecursionError( - "Exceded scene graph depth threshold, cannot find Scene associated with" + "Exceeded scene graph depth threshold, cannot find Scene associated with" "this graphic." ) diff --git a/fastplotlib/graphics/selectors/_sync.py b/fastplotlib/graphics/selectors/_sync.py index b01823394..d0ac5f45a 100644 --- a/fastplotlib/graphics/selectors/_sync.py +++ b/fastplotlib/graphics/selectors/_sync.py @@ -74,7 +74,7 @@ def _move_selectors(self, source, delta): for s in self.selectors: # must use == and not is to compare Graphics because they are weakref proxies! if s == source: - # if it's the source, since it has already movied + # if it's the source, since it has already moved continue s._move_graphic(delta) diff --git a/fastplotlib/layouts/_base.py b/fastplotlib/layouts/_base.py index 69f50800e..c5dcb0581 100644 --- a/fastplotlib/layouts/_base.py +++ b/fastplotlib/layouts/_base.py @@ -40,7 +40,7 @@ def __init__( ): """ Base class for plot creation and management. ``PlotArea`` is not intended to be instantiated by users - but rather to provide functionallity for ``subplot`` in ``gridplot`` and single ``plot``. + but rather to provide functionality for ``subplot`` in ``gridplot`` and single ``plot``. Parameters ---------- diff --git a/fastplotlib/widgets/image.py b/fastplotlib/widgets/image.py index 962a94151..62cba0da8 100644 --- a/fastplotlib/widgets/image.py +++ b/fastplotlib/widgets/image.py @@ -300,7 +300,7 @@ def __init__( if names is not None: if not all([isinstance(n, str) for n in names]): raise TypeError( - "optinal argument `names` must be a list of str" + "optional argument `names` must be a list of str" ) if len(names) != len(self.data): @@ -350,7 +350,7 @@ def __init__( # dict of {array_ix: dims_order_str} for data_ix in list(dims_order.keys()): if not isinstance(data_ix, int): - raise TypeError("`dims_oder` dict keys must be ") + raise TypeError("`dims_order` dict keys must be ") if len(dims_order[data_ix]) != self.ndim: raise ValueError( f"number of dims '{len(dims_order)} passed to `dims_order` " From 698aca6adba2e55997eb1032b9e354619b4dbe13 Mon Sep 17 00:00:00 2001 From: Kushal Kolar Date: Mon, 18 Sep 2023 22:24:12 -0400 Subject: [PATCH 2/2] Update CODE_OF_CONDUCT.md --- CODE_OF_CONDUCT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 7b6e4aa27..65efc3352 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -108,7 +108,7 @@ You can report issues to the fastplotlib core team: [Caitlin Lewis](https://github.com/clewis7) If your report involves any members of the fastplotlib core team, or if they feel they have -a conflict of interest in handling it, then they will recurse themselves from +a conflict of interest in handling it, then they will recuse themselves from considering your report. # Incident reporting resolution & Code of Conduct enforcement