Ignore:
Timestamp:
Jun 23, 2016 9:25:06 PM (6 years ago)
Author:
toby
Message:

improve powder imports: suppress printing of binary data; improve validation of old GSAS binary files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2pwd_fxye.py

    r2152 r2341  
    5252            else:
    5353                self.errors = 'Unexpected information in line: '+str(i+1)
    54                 self.errors += '  '+str(line)
     54                if all([ord(c) < 128 and ord(c) != 0 for c in str(line)]): # show only if ASCII
     55                    self.errors += '  '+str(line)
     56                else:
     57                    self.errors += '  (binary)'
    5558                return False
    5659        return False # no bank records
Note: See TracChangeset for help on using the changeset viewer.