From 72d7ab1acb6b8288b89be72e37cfa1c0690faaa6 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 22 Jul 2023 09:26:11 -0400 Subject: [PATCH 1/5] Add github action to codespell dev on push and PRs --- .github/workflows/codespell.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..20ddb2c --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,22 @@ +--- +name: Codespell + +on: + push: + branches: [dev] + pull_request: + branches: [dev] + +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 From 3f48b7f725b22ed1cf45643ac4f6b62d2a1aff29 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 22 Jul 2023 09:26:11 -0400 Subject: [PATCH 2/5] Add rudimentary codespell config --- .codespellrc | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..da3c057 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,4 @@ +[codespell] +skip = .git,*.pdf,*.svg +# +# ignore-words-list = From 61ba0ccca306024de0245f4add3f0e823751da60 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 22 Jul 2023 09:26:19 -0400 Subject: [PATCH 3/5] Copied codespellrc from pulseq project --- .codespellrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.codespellrc b/.codespellrc index da3c057..1ebfbc0 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,4 +1,5 @@ [codespell] skip = .git,*.pdf,*.svg -# -# ignore-words-list = +# some abbreviated citations etc +ignore-regex = .*Reson\. Ser.* +ignore-words-list = te,fo,nd,maked,datas,iten,itel,tread From 0af4eb2ab5e84066ba7e98d66e46802e423c9010 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 22 Jul 2023 09:27:12 -0400 Subject: [PATCH 4/5] fix ambigous typo --- pypulseq/event_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypulseq/event_lib.py b/pypulseq/event_lib.py index 9c86052..2f573fa 100755 --- a/pypulseq/event_lib.py +++ b/pypulseq/event_lib.py @@ -6,7 +6,7 @@ class EventLibrary: """ - Defines an event library ot maintain a list of events. Provides methods to insert new data and find existing data. + Defines an event library to maintain a list of events. Provides methods to insert new data and find existing data. Sequence Properties: - keys - A list of event IDs From 4a249c026c2a4ecb36b6235fd197a5d15ee7195f Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 22 Jul 2023 09:27:19 -0400 Subject: [PATCH 5/5] [DATALAD RUNCMD] run codespell throughout === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- pypulseq/Sequence/sequence.py | 2 +- pypulseq/seq_examples/scripts/write_MPRAGE.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pypulseq/Sequence/sequence.py b/pypulseq/Sequence/sequence.py index feceb58..d93d2c7 100755 --- a/pypulseq/Sequence/sequence.py +++ b/pypulseq/Sequence/sequence.py @@ -882,7 +882,7 @@ def plot( Parameters ---------- - label : str, defualt=str() + label : str, default=str() Plot label values for ADC events: in this example for LIN and REP labels; other valid labes are accepted as a comma-separated list. save : bool, default=False diff --git a/pypulseq/seq_examples/scripts/write_MPRAGE.py b/pypulseq/seq_examples/scripts/write_MPRAGE.py index 5c07bb4..b58704f 100644 --- a/pypulseq/seq_examples/scripts/write_MPRAGE.py +++ b/pypulseq/seq_examples/scripts/write_MPRAGE.py @@ -100,7 +100,7 @@ def main(plot: bool, write_seq: bool, seq_filename: str = "mprage_pypulseq.seq") # Calculate timing of the fast loop. We will have two blocks in the inner loop: # 1: spoilers/rewinders + RF - # 2: prewinder, phase enconding + readout + # 2: prewinder, phase encoding + readout rf.delay = pp.calc_duration(gro_Sp, gpe1, gpe2) gro_pre, _, _ = pp.align(right=[gro_pre, gpe1, gpe2]) gro1.delay = pp.calc_duration(gro_pre)