parameters: (self, sensors)
docstring: Set Sensor positions.
  
      Set all sensor positions.
      This is just syntactic sugar for setSensorPositions.
  
      Parameters
      ----------
      sensors: iterable
          Iterable that can be converted into a pg.Pos.
  
      Tests
      -----
      >>> import pygimli as pg
      >>> d = pg.DataContainerERT()
      >>> d.setSensors(pg.utils.grange(0.0, 3, n=4))
      >>> assert d.sensorCount() == 4
docstring_summary: Set Sensor positions.
docstring_tokens: Set Sensor positions .
function: def __DataContainer_setSensors(self, sensors):
      """Set Sensor positions.
  
      Set all sensor positions.
      This is just syntactic sugar for setSensorPositions.
  
      Parameters
      ----------
      sensors: iterable
          Iterable that can be converted into a pg.Pos.
  
      Tests
      -----
      >>> import pygimli as pg
      >>> d = pg.DataContainerERT()
      >>> d.setSensors(pg.utils.grange(0.0, 3, n=4))
      >>> assert d.sensorCount() == 4
      """
      for i, s in enumerate(sensors):
          nS = s
          if isinstance(s, float) or isinstance(s, int):
              nS = RVector3(s, 0.0)
  
          if i > self.sensorCount():
              self.createSensor(nS)
          else:
              self.setSensorPosition(i, nS)
function_tokens: def __DataContainer_setSensors ( self , sensors ) : for i , s in enumerate ( sensors ) : nS = s if isinstance ( s , float ) or isinstance ( s , int ) : nS = RVector3 ( s , 0.0 ) if i > self . sensorCount ( ) : self . createSensor ( nS ) else : self . setSensorPosition ( i , nS )