We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 077fbed commit a433036Copy full SHA for a433036
py/orbit/bunch_utils/__init__.py
@@ -6,7 +6,13 @@
6
#
7
8
from orbit.bunch_utils.particleidnumber import ParticleIdNumber
9
-from orbit.bunch_utils.serialize import collect_bunch, save_bunch, load_bunch
+
10
+# This guards against missing numpy.
11
+# Should be imporved with some meaningful (and MPI friendly?) warning printed out.
12
+try:
13
+ from orbit.bunch_utils.serialize import collect_bunch, save_bunch, load_bunch
14
+except:
15
+ pass
16
17
__all__ = []
18
__all__.append("addParticleIdNumbers")
0 commit comments