Пример #1
0
 def __init__(self,fn=None):
     EegpyBase.__init__(self)
     self._sensors = []
     self._fn = fn
     if self._fn != None:
         try:        
             self.read_ced(self._fn)
         except Exception, e:
             print "Error reading .ced-file:", e
Пример #2
0
 def __init__(self, fn=None):
     EegpyBase.__init__(self)
     self._sensors = []
     self._fn = fn
     if self._fn != None:
         try:
             self.read_ced(self._fn)
         except Exception, e:
             print "Error reading .ced-file:", e
Пример #3
0
 def __init__(self,*args):
     EegpyBase.__init__(self)
     if len(args) == 0:
         #No value given, return Cz
         self.set_values(0, 'Cz', 90.0, 0.0, 3.75e-33, -6.12e-17, 1.0, -90.0, 90.0, 1.0)
     elif len(args)==1:
         #String passed, as one line of .ced-file
         splt = args[0].split()
         splt[0] = int(splt[0])
         splt[2:] = [float(s) for s in splt[2:]]
         self.set_values(*splt)
     elif len(args)==10:
         self.set_values(*args)
     else:
         raise ValueError("Illegal input for creating a sensor.")
Пример #4
0
 def __init__(self, *args):
     EegpyBase.__init__(self)
     if len(args) == 0:
         #No value given, return Cz
         self.set_values(0, 'Cz', 90.0, 0.0, 3.75e-33, -6.12e-17, 1.0,
                         -90.0, 90.0, 1.0)
     elif len(args) == 1:
         #String passed, as one line of .ced-file
         splt = args[0].split()
         splt[0] = int(splt[0])
         splt[2:] = [float(s) for s in splt[2:]]
         self.set_values(*splt)
     elif len(args) == 10:
         self.set_values(*args)
     else:
         raise ValueError("Illegal input for creating a sensor.")