From b4fb62d5a84367034397ed60f3cec58f32dc9069 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 1 May 2025 06:34:45 -0400 Subject: [PATCH 1/3] Add github action to codespell master on push and PRs --- .github/workflows/codespell.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..b026c85 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within .codespellrc +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Annotate locations with typos + uses: codespell-project/codespell-problem-matcher@v1 + - name: Codespell + uses: codespell-project/actions-codespell@v2 From 29b7e2b62c5d1912836ef294bedc2b6a4e2e1020 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 1 May 2025 06:34:45 -0400 Subject: [PATCH 2/3] Add rudimentary codespell config --- .codespellrc | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..0332a5b --- /dev/null +++ b/.codespellrc @@ -0,0 +1,5 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git*,.codespellrc +check-hidden = true +ignore-words-list = datas,acn From 2025dcf90cbf399924ff63e90ea1c03c4bc75938 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 1 May 2025 06:35:57 -0400 Subject: [PATCH 3/3] [DATALAD RUNCMD] run codespell throughout fixing few left typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- docs/spherical-video-rfc.md | 2 +- spatialmedia/mpeg/box.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/spherical-video-rfc.md b/docs/spherical-video-rfc.md index 359c401..29c9325 100644 --- a/docs/spherical-video-rfc.md +++ b/docs/spherical-video-rfc.md @@ -72,7 +72,7 @@ Spherical video metadata is stored in a uniquely-identified *moov.trak.uuid* box #### Stereo Mode -[SEI Frame Packing Arragement](http://www.itu.int/ITU-T/recommendations/rec.aspx?rec=10635) and the [StereoMode](http://www.matroska.org/technical/specs/index.html#StereoMode) tag for Matroska/WebM video files can be used to describe the left/right frame layout. To include non-h264 MPEG-4 files an additional StereoMode tag will override the native stereo configuration. The supported StereoMode values are shown below with the corresponding native values. +[SEI Frame Packing Arrangement](http://www.itu.int/ITU-T/recommendations/rec.aspx?rec=10635) and the [StereoMode](http://www.matroska.org/technical/specs/index.html#StereoMode) tag for Matroska/WebM video files can be used to describe the left/right frame layout. To include non-h264 MPEG-4 files an additional StereoMode tag will override the native stereo configuration. The supported StereoMode values are shown below with the corresponding native values. | **Name** | **Description** |Equivalent MKV Value | Equivalent h264 SEI FPI | |----------|-----------------|---------------------|-------------------------| diff --git a/spatialmedia/mpeg/box.py b/spatialmedia/mpeg/box.py index 0ebacf8..d5522fc 100755 --- a/spatialmedia/mpeg/box.py +++ b/spatialmedia/mpeg/box.py @@ -155,7 +155,7 @@ def index_copy(in_fh, out_fh, box, mode, mode_length, delta=0): out_fh: file handle, destination for index file. box: box, stco/co64 box to copy. mode: string, bit packing mode for index entries. - mode_length: int, number of bytes for index entires. + mode_length: int, number of bytes for index entries. delta: int, offset change for index entries. """ fh = in_fh