Changeset 475 for trunk/G2importphase.py


Ignore:
Timestamp:
Feb 7, 2012 3:21:36 PM (11 years ago)
Author:
toby
Message:

fix .EXP import with short SH record, more diagnostics on EXP/PDB read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/G2importphase.py

    r469 r475  
    11# a set of short routines to read in phases from various file formats
    22#
     3import sys
     4import traceback
    35import GSASIIIO as G2IO
    46
     
    2123            self.Phase = G2IO.ReadPDBPhase(filename)
    2224            return True
    23         except:
     25        except Exception as detail:
     26            print 'PDB read error:',detail # for testing
    2427            return False
    2528
     
    4649            self.Phase = G2IO.ReadEXPPhase(ParentFrame, filename)
    4750            return True
    48         except:
     51        except Exception as detail:
     52            print 'GSAS .EXP read error:',detail # for testing
     53            traceback.print_exc(file=sys.stdout)
    4954            return False
Note: See TracChangeset for help on using the changeset viewer.