Ignore:
Timestamp:
Oct 20, 2015 11:37:34 AM (6 years ago)
Author:
toby
Message:

fix export bugs; prevent exception if Cancel is used when locating a missing image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_pwdr.py

    r1997 r2018  
    106106                self.filename= os.path.splitext(self.filename)[0] + self.extension
    107107
    108             prmname = self.WriteInstFile(TreeName,histblk['Instrument Parameters'][0])
     108            histblk = self.Histograms[hist]
     109            prmname = self.WriteInstFile(hist,histblk['Instrument Parameters'][0])
    109110            self.Writer(hist,prmname=prmname)
    110111            print('Histogram '+str(hist)+' written to file '+str(self.fullpath))
Note: See TracChangeset for help on using the changeset viewer.