Skip to content

Commit

Permalink
MNT add codespell (#14)
Browse files Browse the repository at this point in the history
* Add github action to codespell master on push and PRs

* Add rudimentary codespell config

* MNT fix spelling

* Add readme
  • Loading branch information
mvdoc authored Nov 30, 2023
1 parent f058055 commit 43084a1
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[codespell]
skip = .git,*.pdf,*.svg,.codespellrc
check-hidden = true
# ignore-regex =
# ignore-words-list =
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ In this case, the intermediate files will be stored in the working directory and
- `01cleaned.ply` for the cleaned head model, and
- `02aligned.stl` for the aligned head model

To manually refine the alignement, `02aligned.stl` can be loaded in blender with the desired headcase model (stored under the `stls` directory of this repository).
To manually refine the alignment, `02aligned.stl` can be loaded in blender with the desired headcase model (stored under the `stls` directory of this repository).
Finally, the headcase can be generated with

```bash
Expand Down
2 changes: 1 addition & 1 deletion autocase3d/fmin_autograd.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _compute_log_det_cholesky(matrix_chol, covariance_type, n_features):


def _load_gmm_model():
"""Load GMM model by loading the parameters and instatiating a GMM object."""
"""Load GMM model by loading the parameters and instantiating a GMM object."""
here = os.path.dirname(os.path.abspath(__file__))
model_file = os.path.join(here, "gmm_params.npz")
params = np.load(model_file)
Expand Down
2 changes: 1 addition & 1 deletion docs/glab_headcase_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Once you have a good scan, send the file to an email you can access.
1. Create an [Ultimaker account](https://ultimaker.com/software/ultimaker-cura) and ask a senior lab member to add you to the Gallant Lab group.
2. Download the [Ultimaker Cura software](https://ultimaker.com/software/ultimaker-cura) and sign in to your account.
3. Upload both the front and back headcase stl files. Rotate and set the front to x=70mm. Set the back to x=-70mm. The two should be touching.
4. In the `PREPARE` page, select the correct filament type and set the folloing print settings:
4. In the `PREPARE` page, select the correct filament type and set the following print settings:
- Profiles
- Default = 0.2
- Visual = 0.15
Expand Down
Binary file removed stls/default_customizations.stl
Binary file not shown.
1 change: 1 addition & 0 deletions stls/default_customizations.stl
Binary file added stls/default_customizations_v1.stl
Binary file not shown.
Binary file added stls/default_customizations_v2.stl
Binary file not shown.

0 comments on commit 43084a1

Please sign in to comment.