Beispiel #1
0
 def getCSV(self):
     """Import a csv file"""
     self.E = EkinProject()
     from PEATDB.Ekin.IO import Importer
     importer = Importer(self,parent_win=self.mainwin)
     newdata = importer.import_multiple()
     if newdata == None: return
     for n in newdata.keys():
         self.E.insertDataset(newdata[n], n, update=None)
     print 'imported %s datasets' %len(self.E.datasets)
     self.showDatasetSelector()
     self.showPreview()
     return
Beispiel #2
0
 def importCSV(self):
     """Import csv file"""
     from PEATDB.Ekin.IO import Importer
     importer = Importer(self, parent_win=self)
     importer.path = os.getcwd()
     newdata = importer.import_multiple()
     for name in newdata.keys():
         self.E.insertDataset(newdata[name], newname=name)
     self.datasets = sorted(self.E.datasets)
     self.dsindex = self.datasets.index(name)
     self.replot()
     self.updateSelector()
     return
Beispiel #3
0
 def getCSV(self):
     """Import a csv file"""
     self.E = EkinProject()
     from PEATDB.Ekin.IO import Importer
     importer = Importer(self, parent_win=self.mainwin)
     newdata = importer.import_multiple()
     if newdata == None: return
     for n in newdata.keys():
         self.E.insertDataset(newdata[n], n, update=None)
     print 'imported %s datasets' % len(self.E.datasets)
     self.showDatasetSelector()
     self.showPreview()
     return