parameters: (self, idx)
return_statement: return int(parts[2]) + det_size[1] * (int(parts[1]) + det_size[0] * (bankid-1))
docstring: Convert the old bankN_x_y pixel ID into a Mantid index.
docstring_summary: Convert the old bankN_x_y pixel ID into a Mantid index.
docstring_tokens: Convert the old bankN_x_y pixel ID into a Mantid index .
function: def _get_id(self, idx):
          """
          Convert the old bankN_x_y pixel ID into a Mantid index.
          """
          det_size = None
          if self._instName == "BASIS":
              det_size = TYPE2
          else:
              det_size = TYPE1
  
          parts = idx.split('_')
          bankid = int(parts[0].split('bank')[-1])
          return int(parts[2]) + det_size[1] * (int(parts[1]) + det_size[0] * (bankid-1))
function_tokens: def _get_id ( self , idx ) : det_size = None if self . _instName == "BASIS" : det_size = TYPE2 else : det_size = TYPE1 parts = idx . split ( '_' ) bankid = int ( parts [ 0 ] . split ( 'bank' ) [ - 1 ] ) return int ( parts [ 2 ] ) + det_size [ 1 ] * ( int ( parts [ 1 ] ) + det_size [ 0 ] * ( bankid - 1 ) )