docs: def _write_parameter_file(params):
      """ Write the parameter file in the format that elaxtix likes.
      """
      
      # Get path
      path = os.path.join(get_tempdir(), 'params.txt')
      
      # Define helper function
      def valToStr(val):
          if val in [True, False]:
              return '"%s"' % str(val).lower()
          elif isinstance(val, int):
              return str(val)
          elif isinstance(val, float):
              tmp = str(val)
              if not '.' in tmp:
                  tmp += '.0'
              return tmp
          elif isinstance(val, str):
              return '"%s"' % val
      
      # Compile text
      text = ''
      for key in params:
          val = params[key]
          # Make a string of the values
          if isinstance(val, (list, tuple)):
              vals = [valToStr(v) for v in val]
              val_ = ' '.join(vals)
          else:
              val_ = valToStr(val)
          # Create line and add
          line = '(%s %s)' % (key, val_)
          text += line + '\n'
      
      # Write text
      f = open(path, 'wb')
      try:
          f.write(text.encode('utf-8'))
      finally:
          f.close()
      
      # Done
      return path