fixed stderr output (croaking..) as per new ASCII table style

This commit is contained in:
Tias Maiti 2015-08-18 04:33:45 +00:00
parent 419a612d0e
commit befd6aa7ff
5 changed files with 5 additions and 5 deletions

View File

@ -130,7 +130,7 @@ for name in filenames:
errors.append('no deformation gradient tensor (1..9_{}) found.'.format(options.defgrad))
if errors != []:
file['croak'].write('\n'.join(errors)+'\n')
table.croak.write('\n'.join(errors)+'\n')
table.close(dismiss = True)
continue

View File

@ -55,7 +55,7 @@ for name in filenames:
if np.any(info['grid'] < 1): errors.append('invalid grid a b c.')
if np.any(info['size'] <= 0.0): errors.append('invalid size x y z.')
if errors != []:
file['croak'](errors)
table.croak(errors)
table.close(dismiss = True)
continue

View File

@ -80,7 +80,7 @@ for name in filenames:
if np.any(info['grid'] < 1): errors.append('invalid grid a b c.')
if np.any(info['size'] <= 0.0): errors.append('invalid size x y z.')
if errors != []:
file['croak'](errors)
table.croak(errors)
table.close(dismiss = True)
continue

View File

@ -96,7 +96,7 @@ for name in filenames:
remarks = []
if (any(newInfo['origin'] != info['origin'])): remarks.append('--> origin x y z: %s'%(' : '.join(map(str,newInfo['origin']))))
if ( newInfo['microstructures'] != info['microstructures']): remarks.append('--> microstructures: %i'%newInfo['microstructures'])
if remarks != []: file['croak'](remarks)
if remarks != []: table.croak(remarks)
# --- write header ---------------------------------------------------------------------------------

View File

@ -88,7 +88,7 @@ for name in filenames:
remarks = []
if ( newInfo['microstructures'] != info['microstructures']): remarks.append('--> microstructures: %i'%newInfo['microstructures'])
if remarks != []: file['croak'](remarks)
if remarks != []: table.croak(remarks)
# --- write header ---------------------------------------------------------------------------------