Ignore:
Timestamp:
Feb 18, 2016 1:01:27 PM (6 years ago)
Author:
vondreele
Message:

all PWDR exporters will make file name from histogram name
allow read of multibank data
alert user to duplicate histograms (by name)
rename data will not change Bank or Azm part of histogram name
fix L&R plotting commands for TOF data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_csv.py

    r2132 r2152  
    127127
    128128    def Writer(self,TreeName,filename=None):
     129        print filename
    129130        self.OpenFile(filename)
    130131        histblk = self.Histograms[TreeName]
     
    157158        filenamelist = []
    158159        for hist in self.histnam:
    159             #if len(self.histnam) > 1:
    160             #    # multiple files: create a unique name from the histogram
    161             #    fileroot = G2obj.MakeUniqueLabel(self.MakePWDRfilename(hist),filenamelist)
    162             #    # create an instrument parameter file
    163             #    self.filename = os.path.join(self.dirname,fileroot + self.extension)
     160            # multiple files: create a unique name from the histogram
     161            fileroot = G2obj.MakeUniqueLabel(self.MakePWDRfilename(hist),filenamelist)
     162            # create an instrument parameter file
     163            self.filename = os.path.join(self.dirname,fileroot + self.extension)
    164164            self.Writer(hist)
    165165            print('Histogram '+str(hist)+' written to file '+str(self.fullpath))
Note: See TracChangeset for help on using the changeset viewer.