Changeset 3052


Ignore:
Timestamp:
Sep 6, 2017 3:18:13 PM (4 years ago)
Author:
vondreele
Message:

fix Panalytical import to read summed data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2pwd_Panalytical.py

    r2835 r3052  
    7777        if sample.find(tag+'id').text:
    7878            self.comments.append('Sample name='+sample.find(tag+'id').text)
    79         self.comments.append('Date/TimeStart='+header.find(tag+'startTimeStamp').text)
    80         self.comments.append('Date/TimeEnd='+header.find(tag+'endTimeStamp').text)
    81         self.comments.append('xray tube='+tube.attrib['name'])
     79        try:
     80            self.comments.append('Date/TimeStart='+header.find(tag+'startTimeStamp').text)
     81            self.comments.append('Date/TimeEnd='+header.find(tag+'endTimeStamp').text)
     82            self.comments.append('xray tube='+tube.attrib['name'])
     83        except AttributeError:
     84            pass
    8285        self.comments.append('Ka1=%s'%(wave.find(tag+'kAlpha1').text))
    8386        self.comments.append('Ka2=%s'%(wave.find(tag+'kAlpha2').text))
Note: See TracChangeset for help on using the changeset viewer.