Skip to content

Commit

Permalink
Change minimal version of gaga-phsp and garf
Browse files Browse the repository at this point in the history
Ignore tests test066_spect_gaga_garf_4_analyse1.py and test066_spect_gaga_garf_5_analyse2.py because for the moment they lead to errors. They need output data from previous tests and they do not create data, just compare them
  • Loading branch information
tbaudier committed Jan 8, 2024
1 parent dfc3bf9 commit 8c73b57
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ jobs:
pip install torch
fi
pip install SimpleITK
pip install gaga_phsp
pip install garf
pip install gaga_phsp==0.7.1
pip install dist/opengate_core-*-${PYTHONFOLDER}-${OSNAME}*_${PLATFORM}64.whl
pip install dist/opengate-*.whl
export GIT_SSL_NO_VERIFY=1
Expand Down
2 changes: 1 addition & 1 deletion opengate/actors/arfactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def import_garf():
from packaging import version

garf_version = pkg_resources.get_distribution("garf").version
garf_minimal_version = "2.4"
garf_minimal_version = "2.5"
if version.parse(garf_version) < version.parse(garf_minimal_version):
fatal(
"The minimal version of garf is not correct. You should install at least the version "
Expand Down
2 changes: 2 additions & 0 deletions opengate/bin/opengate_tests
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def go(test_id, random_tests):
"test066_spect_gaga_garf_1_reference.py", # ignored because reference data (too long)
"test066_spect_gaga_garf_2.py", # ignored because reference data (too long, GPU)
"test066_spect_gaga_garf_3_standalone.py", # ignored because too long (GPU)
"test066_spect_gaga_garf_4_analyse1.py",
"test066_spect_gaga_garf_5_analyse2.py",
]

onlyfiles = [
Expand Down
2 changes: 1 addition & 1 deletion opengate/sources/gansources.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def import_gaga_phsp():
from packaging import version

gaga_version = pkg_resources.get_distribution("gaga_phsp").version
gaga_minimal_version = "0.7.0"
gaga_minimal_version = "0.7.1"
if version.parse(gaga_version) < version.parse(gaga_minimal_version):
fatal(
"The minimal version of gaga_phsp is not correct. You should install at least the version "
Expand Down

0 comments on commit 8c73b57

Please sign in to comment.