Changeset 1181 for trunk/GSASIIpy3.py


Ignore:
Timestamp:
Jan 2, 2014 2:18:25 PM (8 years ago)
Author:
toby
Message:

bypass format bug, add histogram prms to parmDict, more docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpy3.py

    r1177 r1181  
    7373        decimals = maxdigits[0] - 1
    7474        fmt = "{" + (":{:d}.{:d}g".format(maxdigits[0],decimals))+"}"
    75     print fmt,val
    76     return fmt.format(val).strip()
     75    try:
     76        return fmt.format(val).strip()
     77    except ValueError as err:
     78        print 'FormatValue Error with val,maxdigits,fmt=',val,maxdigits,fmt
     79        return str(val)
Note: See TracChangeset for help on using the changeset viewer.