CRPropa / CRPropa3

CRPropa is a public astrophysical simulation framework for propagating extraterrestrial ultra-high energy particles. https://crpropa.github.io/CRPropa3/
https://crpropa.desy.de
GNU General Public License v3.0
68 stars 67 forks source link

Fix magnetic lenses test #352

Closed rafaelab closed 2 years ago

rafaelab commented 3 years ago

This PR fixes #350. The tests for the magnetic lenses were failing in some cases. It was tested in OSX 11.4 and on Cent OS, both with Python 3.8.3. More tests might be needed.

This quick fix draws largely from the suggestions by user @tdwiser 33631c8 suggested in #350. This might also be relevant for issue #316.

lukasmerten commented 3 years ago

This seems to work also for me:

System Operating system: Ubuntu 18 Python version: 3.6.9 SWIG Version: 3.0.12 cmake version: 3.17