From 58a39416e7bd31f736f3ccdede48666b7742e643 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Thu, 20 Nov 2014 14:51:39 +0100 Subject: [PATCH] Fixed list init --- python/_cosmotool.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/_cosmotool.pyx b/python/_cosmotool.pyx index 83590b2..4da8716 100644 --- a/python/_cosmotool.pyx +++ b/python/_cosmotool.pyx @@ -333,7 +333,7 @@ def loadParallelGadget(list filename_list, bool loadPosition = True, bool loadVe data[i] = local_data # data[i] = loadGadgetMulti(filenames[i].c_str(), -1, flags) - out_arrays = None + out_arrays = [] for i in xrange(num_files): if data[i] == 0: out_arrays.append(None)