fixed stderr output (croaking..) as per new ASCII table style
This commit is contained in:
parent
419a612d0e
commit
befd6aa7ff
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 ---------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -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 ---------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue