Skip to content
Merged
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
7 changes: 5 additions & 2 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- name: Check out code
Expand All @@ -19,8 +22,8 @@ jobs:
with:
version: "latest"

- name: Set up Python
run: uv python install
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: |
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ __pycache__

# tests
/tests/test_data
.venv
.venv
coverage.xml
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ authors = [
]
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.10,<4.0"
requires-python = ">=3.10,<3.14"
dependencies = [
"matplotlib>=3.8.2",
"trimesh>=4.0.5",
"nibabel==5.2.1",
"numpy==1.26.4",
"nibabel>=5.2.1",
"numpy>=1.26.4",
"pillow>=11.0.0",
"pydicom>=3.0.1",
"simpleitk>=2.4.0",
Expand Down
4 changes: 2 additions & 2 deletions radstract/datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
import logging
import os
from collections import defaultdict
from multiprocessing import Lock, Manager, Pool
from multiprocessing import Pool
from typing import Dict, List, Optional, Tuple, Union

import numpy as np
import pydicom
from PIL import Image

from radstract.data.colors import change_color
from radstract.data.dicom import DicomTypes, convert_dicom_to_images
from radstract.data.multimodal import remove_black_frames
from radstract.data.nifti import convert_nifti_to_image_labels


Expand Down
Loading