          config.set(section, helptext)
          config.set(section, item, str(default))
          logger.debug("Inserted item: '%s'", item)
  
      @staticmethod
      def set_helptext_choices(option):
          """ Set the helptext choices """
          choices = ""
          if option["choices"]:
              choices = "\nChoose from: {}".format(option["choices"])
          elif option["type"] == bool:
              choices = "\nChoose from: True, False"
          elif option["type"] == int:
              cmin, cmax = option["min_max"]
              choices = "\nSelect an integer between {} and {}".format(cmin, cmax)
          elif option["type"] == float:
              cmin, cmax = option["min_max"]
              choices = "\nSelect a decimal number between {} and {}".format(cmin, cmax)
          return choices
  
      @staticmethod
      def format_help(helptext, is_section=False):
          """ Format comments for default ini file """
          logger.debug("Formatting help: (helptext: '%s', is_section: '%s')", helptext, is_section)
          helptext = '# {}'.format(helptext.replace("\n", "\n# "))
 
</s> remove                                          "choices": choices}
 </s> add                                          "choices": choices,
                                         "fixed": fixed}

    @staticmethod
    def expand_helptext(helptext, choices, default, datatype, min_max, fixed):
        """ Add extra helptext info from parameters """
        if not fixed:
            helptext += "\nThis option can be updated for existing models."
        if choices:
            helptext += "\nChoose from: {}".format(choices)
        elif datatype == bool:
            helptext += "\nChoose from: True, False"
        elif datatype == int:
            cmin, cmax = min_max
            helptext += "\nSelect an integer between {} and {}".format(cmin, cmax)
        elif datatype == float:
            cmin, cmax = min_max
            helptext += "\nSelect a decimal number between {} and {}".format(cmin, cmax)
        helptext += "\n[Default: {}]".format(default)
        return helptext </s> remove         helptext += self.set_helptext_choices(option)
        helptext += "\n[Default: {}]".format(default)
 </s> add  </s> remove                      "info: '%s', rounding: '%s', min_max: %s, choices: %s)",
                     section, title, datatype, default, info, rounding, min_max, choices)
 </s> add                      "info: '%s', rounding: '%s', min_max: %s, choices: %s, fixed: %s)",
                     section, title, datatype, default, info, rounding, min_max, choices, fixed)
          config.set(section, helptext)
          config.set(section, item, str(default))
          logger.debug("Inserted item: '%s'", item)
  
















      @staticmethod
      def format_help(helptext, is_section=False):
          """ Format comments for default ini file """
          logger.debug("Formatting help: (helptext: '%s', is_section: '%s')", helptext, is_section)
          helptext = '# {}'.format(helptext.replace("\n", "\n# "))
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Allow 'unfixed' parameters for model config 
lib/config.py