OpenGATE / opengate

Gate 10 (beta)
http://www.opengatecollaboration.org
GNU Lesser General Public License v3.0
46 stars 40 forks source link

wget fails to download Geant4/test data #428

Closed ndepauw closed 2 months ago

ndepauw commented 3 months ago

[Decided to give opengate a shot after the ICCR presentation.]

The whole python install is awesome, that's why I wanted to try, but the opengate_tests command would fail to run because the connection keeps crashing during download (might be flagging through the hospital network). Anyway, I looked more into it, and there is no equivalent of wget -c (keep trying to download) in the python implementation.

For now, my workaround was to run wget -c manually on all the files, then hijack the wget command in the execution file (opengate_env/lib/python3.11/site-packages/opengate_core/g4DataSetup.py), and replace the wget.download(package, out=dataLocation) command with packageArchive = package.split("/")[-1].

As I am typing this, the same issue happened with the test data while downloading.

dsarrut commented 2 months ago

Done in #429