-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add pyproject.toml * change GHA * change GHA * change GHA * change GHA * change GHA * change GHA * change GHA * change GHA * rename gh action file * rename II
- Loading branch information
Showing
11 changed files
with
82 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Workflow to build the parallelproj C/CUDA libs (incl. installation of CUDA) | ||
name: python build | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
|
||
runs-on: ${{ matrix.os }} | ||
env: | ||
MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install package | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
- name: Run nifti prediction | ||
run: | | ||
cd demo_data | ||
pyapetnet_predict_from_nifti brainweb_06_osem_cropped.nii brainweb_06_t1_cropped.nii S2_osem_b10_fdg_pe2i --no_coreg |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[build-system] | ||
requires = ["hatchling", | ||
"hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "pyapetnet" | ||
dynamic = ["version"] | ||
description = "a CNN for anatomy-guided deconvolution and denoising of PET images" | ||
readme = "README.md" | ||
license = "MIT" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "Georg Schramm", email = "georg.schramm@kuleuven.be" }, | ||
] | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
] | ||
dependencies = [ | ||
"pymirc>=0.29", | ||
"SimpleITK>=2.0", | ||
"tensorflow>=2.2", | ||
] | ||
|
||
[project.scripts] | ||
pyapetnet_list_models = "pyapetnet.list_models:main" | ||
pyapetnet_predict_from_dicom = "pyapetnet.predict_from_dicom:main" | ||
pyapetnet_predict_from_nifti = "pyapetnet.predict_from_nifti:main" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/gschramm/pyapetnet" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "pyapetnet/_version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/pyapetnet", | ||
] |