Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add codespell: config, workflow and have typos fixed #770

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
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@v3
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion hed/models/column_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _set_sidecar(self, sidecar):
sidecar (Sidecar or None): the sidecar to use

:raises ValueError:
- A sidecar was prevoiusly set
- A sidecar was previously set
"""
if self._sidecar:
raise ValueError("Trying to set a second sidecar on a column mapper.")
Expand Down
2 changes: 1 addition & 1 deletion hed/models/expression_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def handle_expr(self, hed_group, exact=False):
class ExpressionOr(Expression):
def handle_expr(self, hed_group, exact=False):
groups1 = self.left.handle_expr(hed_group, exact=exact)
# Don't early out as we need to gather all groups incase tags appear more than once etc
# Don't early out as we need to gather all groups in case tags appear more than once etc
groups2 = self.right.handle_expr(hed_group, exact=exact)
# todo: optimize this eventually
# Filter out duplicates
Expand Down
14 changes: 7 additions & 7 deletions hed/schema/schema_data/HED8.0.0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@
</node>
<node>
<name>Predict</name>
<description>Say or estimate that something will happen or will be a consequence of something without having exact informaton.</description>
<description>Say or estimate that something will happen or will be a consequence of something without having exact information.</description>
</node>
<node>
<name>Recognize</name>
Expand Down Expand Up @@ -1397,7 +1397,7 @@
</node>
<node>
<name>Tool</name>
<description>A component that is not part of a device but is designed to support its assemby or operation.</description>
<description>A component that is not part of a device but is designed to support its assembly or operation.</description>
</node>
</node>
<node>
Expand Down Expand Up @@ -1581,7 +1581,7 @@
</node>
<node>
<name>Truck</name>
<description>A motor vehicle which, as its primary funcion, transports cargo rather than human passangers.</description>
<description>A motor vehicle which, as its primary function, transports cargo rather than human passangers.</description>
</node>
</node>
</node>
Expand Down Expand Up @@ -1623,7 +1623,7 @@
<description>Mechanical vibrations transmitted by an elastic medium. Something that can be heard.</description>
<node>
<name>Environmental-sound</name>
<description>Sounds occuring in the environment. An accumulation of noise pollution that occurs outside. This noise can be caused by transport, industrial, and recreational activities.</description>
<description>Sounds occurring in the environment. An accumulation of noise pollution that occurs outside. This noise can be caused by transport, industrial, and recreational activities.</description>
<node>
<name>Crowd-sound</name>
<description>Noise produced by a mixture of sounds from a large group of people.</description>
Expand Down Expand Up @@ -2751,7 +2751,7 @@
<description>Something capable of being estimated or expressed with numeric values.</description>
<node>
<name>Fraction</name>
<description>A numerical value betwee 0 and 1.</description>
<description>A numerical value between 0 and 1.</description>
<node>
<name>#</name>
<attribute>
Expand Down Expand Up @@ -2940,7 +2940,7 @@
</node>
<node>
<name>Statistical-recall</name>
<description>Sensitivity is a measurement datum qualifying a binary classification test and is computed by substracting the false negative rate to the integral numeral 1.</description>
<description>Sensitivity is a measurement datum qualifying a binary classification test and is computed by subtracting the false negative rate to the integral numeral 1.</description>
<node>
<name>#</name>
<attribute>
Expand Down Expand Up @@ -3526,7 +3526,7 @@
<description>Characterization of the physical features of a tract of land.</description>
<node>
<name>Composite-terrain</name>
<description>Tracts of land characterized by a mixure of physical features.</description>
<description>Tracts of land characterized by a mixture of physical features.</description>
</node>
<node>
<name>Dirt-terrain</name>
Expand Down
12 changes: 6 additions & 6 deletions hed/schema/schema_data/HED8.1.0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@
</node>
<node>
<name>Predict</name>
<description>Say or estimate that something will happen or will be a consequence of something without having exact informaton.</description>
<description>Say or estimate that something will happen or will be a consequence of something without having exact information.</description>
</node>
<node>
<name>Recognize</name>
Expand Down Expand Up @@ -1406,7 +1406,7 @@
</node>
<node>
<name>Tool</name>
<description>A component that is not part of a device but is designed to support its assemby or operation.</description>
<description>A component that is not part of a device but is designed to support its assembly or operation.</description>
</node>
</node>
<node>
Expand Down Expand Up @@ -1594,7 +1594,7 @@
</node>
<node>
<name>Truck</name>
<description>A motor vehicle which, as its primary funcion, transports cargo rather than human passangers.</description>
<description>A motor vehicle which, as its primary function, transports cargo rather than human passangers.</description>
</node>
</node>
</node>
Expand Down Expand Up @@ -1636,7 +1636,7 @@
<description>Mechanical vibrations transmitted by an elastic medium. Something that can be heard.</description>
<node>
<name>Environmental-sound</name>
<description>Sounds occuring in the environment. An accumulation of noise pollution that occurs outside. This noise can be caused by transport, industrial, and recreational activities.</description>
<description>Sounds occurring in the environment. An accumulation of noise pollution that occurs outside. This noise can be caused by transport, industrial, and recreational activities.</description>
<node>
<name>Crowd-sound</name>
<description>Noise produced by a mixture of sounds from a large group of people.</description>
Expand Down Expand Up @@ -3045,7 +3045,7 @@
</node>
<node>
<name>Statistical-recall</name>
<description>Sensitivity is a measurement datum qualifying a binary classification test and is computed by substracting the false negative rate to the integral numeral 1.</description>
<description>Sensitivity is a measurement datum qualifying a binary classification test and is computed by subtracting the false negative rate to the integral numeral 1.</description>
<node>
<name>#</name>
<attribute>
Expand Down Expand Up @@ -3631,7 +3631,7 @@
<description>Characterization of the physical features of a tract of land.</description>
<node>
<name>Composite-terrain</name>
<description>Tracts of land characterized by a mixure of physical features.</description>
<description>Tracts of land characterized by a mixture of physical features.</description>
</node>
<node>
<name>Dirt-terrain</name>
Expand Down
12 changes: 6 additions & 6 deletions hed/schema/schema_data/HED8.2.0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ Each term in this vocabulary has a human-readable description and may include ad
</node>
<node>
<name>Predict</name>
<description>Say or estimate that something will happen or will be a consequence of something without having exact informaton.</description>
<description>Say or estimate that something will happen or will be a consequence of something without having exact information.</description>
</node>
<node>
<name>Recognize</name>
Expand Down Expand Up @@ -1412,7 +1412,7 @@ Each term in this vocabulary has a human-readable description and may include ad
</node>
<node>
<name>Tool</name>
<description>A component that is not part of a device but is designed to support its assemby or operation.</description>
<description>A component that is not part of a device but is designed to support its assembly or operation.</description>
</node>
</node>
<node>
Expand Down Expand Up @@ -1600,7 +1600,7 @@ Each term in this vocabulary has a human-readable description and may include ad
</node>
<node>
<name>Truck</name>
<description>A motor vehicle which, as its primary funcion, transports cargo rather than human passangers.</description>
<description>A motor vehicle which, as its primary function, transports cargo rather than human passangers.</description>
</node>
</node>
</node>
Expand Down Expand Up @@ -1642,7 +1642,7 @@ Each term in this vocabulary has a human-readable description and may include ad
<description>Mechanical vibrations transmitted by an elastic medium. Something that can be heard.</description>
<node>
<name>Environmental-sound</name>
<description>Sounds occuring in the environment. An accumulation of noise pollution that occurs outside. This noise can be caused by transport, industrial, and recreational activities.</description>
<description>Sounds occurring in the environment. An accumulation of noise pollution that occurs outside. This noise can be caused by transport, industrial, and recreational activities.</description>
<node>
<name>Crowd-sound</name>
<description>Noise produced by a mixture of sounds from a large group of people.</description>
Expand Down Expand Up @@ -3090,7 +3090,7 @@ Each term in this vocabulary has a human-readable description and may include ad
</node>
<node>
<name>Statistical-recall</name>
<description>Sensitivity is a measurement datum qualifying a binary classification test and is computed by substracting the false negative rate to the integral numeral 1.</description>
<description>Sensitivity is a measurement datum qualifying a binary classification test and is computed by subtracting the false negative rate to the integral numeral 1.</description>
<node>
<name>#</name>
<attribute>
Expand Down Expand Up @@ -3696,7 +3696,7 @@ Each term in this vocabulary has a human-readable description and may include ad
<description>Characterization of the physical features of a tract of land.</description>
<node>
<name>Composite-terrain</name>
<description>Tracts of land characterized by a mixure of physical features.</description>
<description>Tracts of land characterized by a mixture of physical features.</description>
</node>
<node>
<name>Dirt-terrain</name>
Expand Down
6 changes: 3 additions & 3 deletions hed/schema/schema_data/HED_score_1.0.0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ For more information see https://hed-schema-library.readthedocs.io/en/latest/ind
</node>
<node>
<name>Saw-tooth-waves</name>
<description>Vertex negative 2-5 Hz waves occuring in series during REM sleep</description>
<description>Vertex negative 2-5 Hz waves occurring in series during REM sleep</description>
<attribute>
<name>suggestedTag</name>
<value>Finding-significance-to-recording</value>
Expand All @@ -591,7 +591,7 @@ For more information see https://hed-schema-library.readthedocs.io/en/latest/ind
</node>
<node>
<name>POSTS</name>
<description>Positive occipital sharp transients of sleep. Sharp transient maximal over the occipital regions, positive relative to other areas, apparently occurring spontaneously during sleep. May be single or repetitive. Amplitude varies but is generally bellow 50 microV.</description>
<description>Positive occipital sharp transients of sleep. Sharp transient maximal over the occipital regions, positive relative to other areas, apparently occurring spontaneously during sleep. May be single or repetitive. Amplitude varies but is generally below 50 microV.</description>
<attribute>
<name>suggestedTag</name>
<value>Finding-significance-to-recording</value>
Expand Down Expand Up @@ -1427,7 +1427,7 @@ For more information see https://hed-schema-library.readthedocs.io/en/latest/ind
</node>
<node>
<name>Rudimentary-spike-wave-complex</name>
<description>Synonym: Pseudo petit mal discharge. Paroxysmal discharge that consists of generalized or nearly generalized high voltage 3 to 4/sec waves with poorly developed spike in the positive trough between the slow waves, occurring in drowsiness only. It is found only in infancy and early childhood when marked hypnagogic rhythmical theta activity is paramount in the drowsy state.</description>
<description>Synonym: Pseudo petit mal discharge. Paroxysmal discharge that consists of generalized or nearly generalized high voltage 3 to 4/sec waves with poorly developed spike in the positive through between the slow waves, occurring in drowsiness only. It is found only in infancy and early childhood when marked hypnagogic rhythmical theta activity is paramount in the drowsy state.</description>
<attribute>
<name>suggestedTag</name>
<value>Brain-laterality</value>
Expand Down
Loading