Ignore:
Timestamp:
Apr 30, 2012 10:57:52 AM (10 years ago)
Author:
toby
Message:

finish import structure factor; refactor import classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/G2importphase_GPX.py

    r574 r580  
    2020            )
    2121    def ContentsValidator(self, filepointer):
    22         filepointer.seek(0) # rewind the file pointer
    2322        # if the 1st section can't be read as a cPickle file, it can't be!
    2423        try:
     
    4746            self.Phase = G2str.GetAllPhaseData(filename,phasenames[selblk])
    4847            return True
    49         except:
    50             return False
    51 
     48        except Exception as detail:
     49            print self.formatName+' error:',detail # for testing
     50            print sys.exc_info()[0] # for testing
     51            import traceback
     52            print traceback.format_exc()
Note: See TracChangeset for help on using the changeset viewer.