fixed bug in auto determination of size and grid

This commit is contained in:
Ding Wang 2013-06-11 10:11:14 +00:00
parent 1b53bad9a4
commit 920195809c
1 changed files with 2 additions and 2 deletions

View File

@ -132,9 +132,9 @@ for file in files:
file['croak'].write('invalid size x y z.\n')
sys.exit()
if numpy.all(info['grid'] == 0):
if numpy.all(newInfo['grid'] == 0):
newInfo['grid'] = info['grid']
if numpy.all(info['size'] == 0.0):
if numpy.all(newInfo['size'] == 0.0):
newInfo['size'] = info['size']
#--- read data ------------------------------------------------------------------------------------