'Return the 1-base index of a sources column with the given `name`.'

def get_metadata_column_index_by_name(self, name):

    column = getattr(self.dataset.metadata, name)
    return ((column - 1) if (isinstance(column, int) and (column > 0)) else None)
