parameters: (self, **kwargs)
return_statement: return self.data_
docstring: Create a Dipole-Dipole dataset.
  
          Don't use directly .. call create from DataSchemeManager or
          ert.createData(elecs, schemeName='dd', **kwargs) instead.
  
          Parameters
          ----------
  
          **kwargs:
              * complete : bool
                  Add reciprocity measurements.
              * enlarge : int
                  Enlarge dipole length every n dipole separations.
              * spacings : array[int]
                  vector of spacings (dipole lengths) to use
docstring_summary: Create a Dipole-Dipole dataset.
docstring_tokens: Create a Dipole - Dipole dataset .
function: def createData(self, **kwargs):
          """
          Create a Dipole-Dipole dataset.
  
          Don't use directly .. call create from DataSchemeManager or
          ert.createData(elecs, schemeName='dd', **kwargs) instead.
  
          Parameters
          ----------
  
          **kwargs:
              * complete : bool
                  Add reciprocity measurements.
              * enlarge : int
                  Enlarge dipole length every n dipole separations.
              * spacings : array[int]
                  vector of spacings (dipole lengths) to use
          """
          nElectrodes = self.nElectrodes_
          complete = kwargs.pop('complete', False)
  
          if complete:
              self._closed = True
  
          self.enlargeEverySep = kwargs.pop('enlarge', 0)
          self.spacings = kwargs.pop('spacings', self.spacings)
          # self.createElectrodes(nElectrodes, electrodeSpacing)
  
          # reserve a couple more than necessary ###
          nElectrodes = self.nElectrodes_
          self.data_.resize(nElectrodes * nElectrodes)
  
          count = 0
  
          if self.closed:
              space = 1
              for i in range(nElectrodes):
                  a = i
                  b = (a + space) % nElectrodes
  
                  for j in range(nElectrodes):
                      m = (j) % nElectrodes
                      n = (m + space) % nElectrodes
  
                      if not complete:
                          if j <= i:
                              continue
  
                      if a != m and a != n and b != m and b != n:
                          count = self.createDatum_(a, b, m, n, count)
  
          else:
              for space in self.spacings:
                  maxSep = nElectrodes - space
                  maxInj = nElectrodes - space
  
                  if self.maxSeparation < maxSep:
                      maxSep = self.maxSeparation
                  for sep in range(1, maxSep + 1):
  
                      if self.enlargeEverySep > 0:
                          if (sep-1) % self.enlargeEverySep == 0:
                              space += 1
  
                      for i in range(maxInj - sep):
                          a = i
                          b = (a + space) % nElectrodes
                          m = (b + sep) % nElectrodes
                          n = (m + space) % nElectrodes
                          if m + space < nElectrodes:
                              count = self.createDatum_(a, b, m, n, count)
  
          self.data_.removeInvalid()
          return self.data_
function_tokens: def createData ( self , * * kwargs ) : nElectrodes = self . nElectrodes_ complete = kwargs . pop ( 'complete' , False ) if complete : self . _closed = True self . enlargeEverySep = kwargs . pop ( 'enlarge' , 0 ) self . spacings = kwargs . pop ( 'spacings' , self . spacings ) # self.createElectrodes(nElectrodes, electrodeSpacing) # reserve a couple more than necessary ### nElectrodes = self . nElectrodes_ self . data_ . resize ( nElectrodes * nElectrodes ) count = 0 if self . closed : space = 1 for i in range ( nElectrodes ) : a = i b = ( a + space ) % nElectrodes for j in range ( nElectrodes ) : m = ( j ) % nElectrodes n = ( m + space ) % nElectrodes if not complete : if j <= i : continue if a != m and a != n and b != m and b != n : count = self . createDatum_ ( a , b , m , n , count ) else : for space in self . spacings : maxSep = nElectrodes - space maxInj = nElectrodes - space if self . maxSeparation < maxSep : maxSep = self . maxSeparation for sep in range ( 1 , maxSep + 1 ) : if self . enlargeEverySep > 0 : if ( sep - 1 ) % self . enlargeEverySep == 0 : space += 1 for i in range ( maxInj - sep ) : a = i b = ( a + space ) % nElectrodes m = ( b + sep ) % nElectrodes n = ( m + space ) % nElectrodes if m + space < nElectrodes : count = self . createDatum_ ( a , b , m , n , count ) self . data_ . removeInvalid ( ) return self . data_