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 ea083c7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 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/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
6 changes: 3 additions & 3 deletions scripts/amypet_gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def main(argv=None):
`pip install SimpleITK`"""
)
)
elif len(fn4b) >= 1:
else:
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:
if fgif and not args.overwrite_existing:
log.warning("skipping")
continue

Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ niftypet=niftypet>=0.0.1
niftypad=
gif=
argopt
miutil>0.8.0
miutil>=0.9.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
1 change: 1 addition & 0 deletions tests/test_imtrimup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def dyndir(datain, mMRpars):
return Path(opth) / "PET" / "multiple-frames"


@pytest.mark.timeout(60 * 60)
def test_rectrim(dyndir):
rectrim = pytest.importorskip("amypad.rectrim")
rectrim.run(dyndir)

0 comments on commit ea083c7

Please sign in to comment.