PYTHON: Replace numpy.empty with numpy.zeros in AmunXML.__fill_chunks().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
07fc5c20b0
commit
e13bd00a0e
@ -168,9 +168,9 @@ class AmunXML(Amun):
|
||||
|
||||
self.chunks[n]['bounds'] = numpy.array([bounds[:,:,ii[p]].T for p in range(self.chunks[n]['dblocks'])]).T
|
||||
else:
|
||||
self.chunks[n]['levels'] = numpy.empty((1), dtype = numpy.int32)
|
||||
self.chunks[n]['coords'] = numpy.empty((3,1), dtype = numpy.int32)
|
||||
self.chunks[n]['bounds'] = numpy.empty((2,3,1), dtype = numpy.float64)
|
||||
self.chunks[n]['levels'] = numpy.zeros((1), dtype = numpy.int32)
|
||||
self.chunks[n]['coords'] = numpy.zeros((3,1), dtype = numpy.int32)
|
||||
self.chunks[n]['bounds'] = numpy.zeros((2,3,1), dtype = numpy.float64)
|
||||
|
||||
|
||||
def __read_binary_data__(self, dataset_name, chunk_number):
|
||||
|
Loading…
x
Reference in New Issue
Block a user