one more bug fix related to scaling

This commit is contained in:
Martin Diehl 2013-03-26 16:16:59 +00:00
parent ccef9d4f73
commit 770712529d
1 changed files with 2 additions and 1 deletions

View File

@ -374,8 +374,9 @@ sep = {'n': '\n', 't': '\t', 's': ' '}
(options, args) = parser.parse_args()
options.scaling += numpy.ones(max(0,3-len(options.scaling)))
options.scaling += [1.0 for i in xrange(max(0,3-len(options.scaling)))]
options.scaling = map(float, options.scaling)
if numpy.any(options.scaling != 1.0) and options.linearreconstruction: print 'cannot scale for linear reconstruction'
if numpy.any(options.scaling != 1.0) and options.filenodalcoords != '': print 'cannot scale when reading coordinate from file'
options.separator = options.separator.lower()