PEATDB/Ekin/Base.py
def exportDatasets(self, filename=None, format=None, append=False):
       """Export all datasets as csv
            formatted as x-y columns per dataset """
       if filename == None:
           return
       if os.path.splitext(filename) != '.csv':
           filename = os.path.splitext(filename)[0]+'.csv'
       if append==True:
           f=open(filename,'a')
       else:
           f=open(filename,'wb')
       import csv
       cw=csv.writer(f)
       for d in self.datasets:
           ek = self.getDataset(d)
           x,y = ek.getxy()
           cw.writerow([d])
           cw.writerows(sorted(zip(x,y)))
           cw.writerow('')
       return
Export all datasets as csv
            formatted as x-y columns per dataset 
Export all datasets as csv
formatted as x-y columns per dataset
Export all datasets as csv formatted as x - y columns per dataset
def exportDatasets(self, filename=None, format=None, append=False):
       if filename == None:
           return
       if os.path.splitext(filename) != '.csv':
           filename = os.path.splitext(filename)[0]+'.csv'
       if append==True:
           f=open(filename,'a')
       else:
           f=open(filename,'wb')
       import csv
       cw=csv.writer(f)
       for d in self.datasets:
           ek = self.getDataset(d)
           x,y = ek.getxy()
           cw.writerow([d])
           cw.writerows(sorted(zip(x,y)))
           cw.writerow('')
       return
def exportDatasets ( self , filename = None , format = None , append = False ) : if filename == None : return if os . path . splitext ( filename ) != '.csv' : filename = os . path . splitext ( filename ) [ 0 ] + '.csv' if append == True : f = open ( filename , 'a' ) else : f = open ( filename , 'wb' ) import csv cw = csv . writer ( f ) for d in self . datasets : ek = self . getDataset ( d ) x , y = ek . getxy ( ) cw . writerow ( [ d ] ) cw . writerows ( sorted ( zip ( x , y ) ) ) cw . writerow ( '' ) return
Export all datasets as csv
formatted as x-y columns per dataset
Export all datasets as csv formatted as x - y columns per dataset
"""Export all datasets as csv
            formatted as x-y columns per dataset """
self
filename
format
append