code: def _writeMapTable(self, session, fileObject, mapTable, replaceParamFile):
          
  
          # Write mapping name
          fileObject.write('%s "%s"\n' % (mapTable.name, mapTable.indexMap.name))
  
          # Write mapping table global variables
          if mapTable.numIDs:
              fileObject.write('NUM_IDS %s\n' % (mapTable.numIDs))
  
          if mapTable.maxNumCells:
              fileObject.write('MAX_NUMBER_CELLS %s\n' % (mapTable.maxNumCells))
  
          if mapTable.numSed:
              fileObject.write('NUM_SED %s\n' % (mapTable.numSed))
  
          if mapTable.maxSoilID:
              fileObject.write('MAX_SOIL_ID %s\n' % (mapTable.maxSoilID))
  
          # Write value lines from the database
          self._writeValues(session, fileObject, mapTable, None, replaceParamFile)
docs: Write Generic Map Table Method
  
          This method writes a mapping table in the generic format to file. The method will handle
          both empty and filled cases of generic formatted mapping tables.
  
          session = SQLAlchemy session object for retrieving data from the database
          fileObject = The file object to write to
          mapTable = The GSSHAPY MapTable object to write