docs: def generate_namelist_file(self, rapid_namelist_file):
          """
          Generate rapid_namelist file.
  
          Parameters
          ----------
          rapid_namelist_file: str
              Path of namelist file to generate from
              parameters added to the RAPID manager.
          """
          log("Generating RAPID namelist file ...",
              "INFO")
          try:
              os.remove(rapid_namelist_file)
          except OSError:
              pass
  
          with open(rapid_namelist_file, 'w') as new_file:
              new_file.write('&NL_namelist\n')
              for attr, value in sorted(list(self.__dict__.items())):
                  if not attr.startswith('_'):
                      if attr.startswith('BS'):
                          new_file.write("{0} = .{1}.\n"
                                         .format(attr, str(value).lower()))
                      elif isinstance(value, int):
                          new_file.write("%s = %s\n" % (attr, value))
                      else:
                          if value:
                              if os.name == "nt":
                                  # if windows generate file with cygpath
                                  value = self._get_cygwin_path(value)
                              new_file.write("%s = \'%s\'\n" % (attr, value))
              new_file.write("/\n")