Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Sep 14, 2021
1 parent a78bddf commit 3a7b5d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- run: pre-commit run -a --show-diff-on-failure
test:
if: github.event_name != 'pull_request' || github.head_ref != 'devel'
runs-on: [self-hosted, python]
runs-on: [self-hosted, python, cuda]
timeout-minutes: 4320
strategy:
matrix:
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Run setup-python
run: setup-python -p${{ matrix.python }} miutil scikit-build cmake ninja
- name: Install
run: pip install -U --no-binary nimpa "git+git://github.com/AMYPAD/miutil@devel#egg=miutil" "git+git://github.com/AMYPAD/NiftyPAD@master#egg=niftypad" -e .[dev,gif]
run: pip install -U --no-binary nimpa,nipet "git+git://github.com/AMYPAD/miutil@devel#egg=miutil" "git+git://github.com/AMYPAD/NiftyPAD@master#egg=niftypad" "git+git://github.com/NiftyPET/NIMPA@devel#egg=nimpa" "git+git://github.com/NiftyPET/NIPET@devel#egg=nipet" -e .[dev,gif,imtrimup]
- run: pytest
- run: codecov
- name: Post Run setup-python
Expand Down
2 changes: 1 addition & 1 deletion scripts/amypet_gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def main(argv=None):
elif len(fn4b) >= 1:
if len(fn4b) > 1:
log.warning("%d inputs found, selecting latest")
fingif = nsort(fn4b)[-1]
fingif = nsort(list(map(str, fn4b)))[-1]
log.debug("found N4-bias corrected:%s", fingif)
if len(fgif) != 0 or not args.overwrite_existing:
log.warning("skipping")
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ gif=
miutil>0.8.0
nimpa
SimpleITK>=1.2.0,<2
imtrimup=nipet
[options.entry_points]
console_scripts=
amypad=amypad.cli:main
Expand Down
1 change: 1 addition & 0 deletions tests/test_gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def test_gif(fimin):
else:
fin = fimin

print(fin)
gif.run(fin, outpath=outpath / "GIF")


Expand Down

0 comments on commit 3a7b5d0

Please sign in to comment.