catching a problem with sloppy formatted GSE data

This commit is contained in:
Sebastian Wehling-Benatelli 2015-02-13 11:30:45 +01:00
parent 47f0fcb030
commit e66e0701a4

View File

@ -134,8 +134,11 @@ class Data(object):
self.getWFData().filter(**kwargs) self.getWFData().filter(**kwargs)
def setWFData(self, fnames): def setWFData(self, fnames):
for fname in fnames: for fname in fnames[0]:
try:
self.wfdata += read(fname) self.wfdata += read(fname)
except TypeError:
self.wfdata += read(fname, format='GSE2')
def appenWFData(self, fnames): def appenWFData(self, fnames):
for fname in fnames: for fname in fnames: