def make_list(option, opt_str, value, parser):
    """
    This function is used when certain commandline options are used when running turboSETI (-c). It is used to convert
    the inputted option, which should be a comma separated string, into a list. Stores this in the inputted OptionParser
    object's values field, under the inputted option. This is only called for the coarse_chans option currently,
    essentially to parse the inputted coarse channels into a usable format.
    :param option:      Option,         whose value should be set to the new list
    :param opt_str:     string,         (unused) command line option inputted when main was run
    :param value:       string,         in comma separated format which must be converted to list format
    :param parser:      OptionParser,   instance whose option we are setting to the new list
    :return: void
    """
    v = value.replace('[', '').replace(']', '').split(',')
    v = list(map(int, v))
    setattr(parser.values, option.dest, v)
