radiasoft / sirepo

Sirepo is a framework for scientific cloud computing. Try it out!
https://sirepo.com
Apache License 2.0
64 stars 32 forks source link

pyzoubi is py2 only #2439

Closed robnagler closed 4 years ago

robnagler commented 4 years ago

@moellep is there anyway we can use zgoubidoo? It's the only code that's py2, and I already ripped out the pyenv crap. I'd rather not maintain py2 execution in job_cmd.

robnagler commented 4 years ago

I might have found a hack.

robnagler commented 4 years ago

Fix d3bdc9fcfebbdfa1bb7945029314261a31523e74

templates run in py2, but there's no need to exec_parameters. The file runs, and creates the zgoubi input file, which zgoubi reads hardwired. Therefore, just run as a subprocess. Might be a bit slower, but only for the zgoubi run itself, not for the analysis, which occurs as python3.