aboutsummaryrefslogtreecommitdiffstats
path: root/ReduceH5
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2014-11-26 18:50:03 +0100
committerVolker Hoffmann <volker@cheleb.net>2014-11-26 18:50:06 +0100
commitb477f8642b68a1f129d055c720148cf1455bf970 (patch)
tree9e88a60c7512ac2ddc23815019d31096670436f3 /ReduceH5
parent8e5300fbccdecca6b63f4c52ebcaeeea8f6676ee (diff)
do not choke on single particle sims
Diffstat (limited to 'ReduceH5')
-rw-r--r--ReduceH5/reduce_genga.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ReduceH5/reduce_genga.py b/ReduceH5/reduce_genga.py
index 87f6f23..22e7df0 100644
--- a/ReduceH5/reduce_genga.py
+++ b/ReduceH5/reduce_genga.py
@@ -61,7 +61,7 @@ for istep, nstep in enumerate(nsteps):
(strftime("%H:%M:%S", gmtime()), nstep, nsteps[-1])
fname = "Out%s_%012d.dat" % (args.run_name, nstep)
- genga = np.loadtxt("%s" % fname)
+ genga = np.loadtxt("%s" % fname, ndmin=2)
# t i m r x y z vx vy vz Sx Sy Sz
# 0 1 2 3 4 5 6 7 8 9 10 11 12