Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from fcbg-hnp-meeg/dependabot/github_actions/ac…
Browse files Browse the repository at this point in the history
…tions/setup-python-5

Bump actions/setup-python from 4 to 5
  • Loading branch information
mscheltienne authored Dec 12, 2023
2 parents 96bdc06 + e0c4b00 commit 6aefc2b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
architecture: 'x64'
Expand All @@ -41,7 +41,5 @@ jobs:
ignore_words_file: ./.codespellignore
- name: Run pydocstyle
run: pydocstyle .
- name: Run bibclean
run: bibclean-check doc/references.bib
- name: Run toml-sort
run: toml-sort pyproject.toml --check
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![codecov](https://codecov.io/gh/mscheltienne/template-python/branch/main/graph/badge.svg?token=KRYRRUXDYY)](https://codecov.io/gh/mscheltienne/template-python)
[![tests](https://github.com/mscheltienne/template-python/actions/workflows/pytest.yml/badge.svg?branch=main)](https://github.com/mscheltienne/template-python/actions/workflows/pytest.yml)
[![codecov](https://codecov.io/gh/mscheltienne/mri-qtm-brush/graph/badge.svg?token=NEg1gMT5vJ)](https://codecov.io/gh/mscheltienne/mri-qtm-brush)
[![tests](https://github.com/fcbg-hnp-meeg/mri-qtm-brush/actions/workflows/pytest.yml/badge.svg?branch=main)](https://github.com/fcbg-hnp-meeg/mri-qtm-brush/actions/workflows/pytest.yml)

# MRI-QTM brush

Expand Down
2 changes: 1 addition & 1 deletion mri_qtm_brush/_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def quat_to_rot(quat: NDArray[float]) -> NDArray[float]:


def quat_to_affine(quat: NDArray[float]) -> NDArray[float]:
"""Convert quaternion to 4x4 affine transformaton."""
"""Convert quaternion to 4x4 affine transformation."""
assert quat.shape == (6,)
affine = np.eye(4)
affine[:3, :3] = quat_to_rot(quat[:3])
Expand Down
2 changes: 1 addition & 1 deletion mri_qtm_brush/qtm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def on_packet_callback(packet): # noqa: D401
"""Callback function that is called everytime a data packet arrives from QTM."""
"""Callback function that is called every time a data packet arrives from QTM."""
global affine_array
global markers_old

Expand Down
5 changes: 3 additions & 2 deletions mri_qtm_brush/render.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from __future__ import annotations # c.f. PEP 563, PEP 649

import multiprocessing as mp

import numpy as np
import pyvista as pv
from pyvistaqt import BackgroundPlotter

from .utils.logs import logger
from .utils._checks import check_type
from .utils.logs import logger


class Render(BackgroundPlotter):
Expand All @@ -31,7 +32,7 @@ def __init__(
(28.15, 42.21, -31.08),
(50.67, -44.29, -28.88),
(-92.50, 1.43, 14.89),
(-265, 0, 0)
(-265, 0, 0),
]
]
for point in self._points:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ full = [
'mri_qtm_brush[all]',
]
style = [
'bibclean',
'black',
'codespell',
'isort',
Expand Down

0 comments on commit 6aefc2b

Please sign in to comment.