def transfer_array(self, value, row_start, field_start, field_end,
                       row_end=None, sep=", "):
        """Changes the values of an array in the template relative to the
        current anchor. This should generally be used for one-dimensional
        or free form arrays.

        value: float, integer, bool, str
            Array of values to insert.

        row_start: integer
            Starting row for inserting the array. This is relative
            to the anchor, and can be negative.

        field_start: integer
            Starting field in the given row_start as denoted by
            delimiter(s).

        field_end: integer
            The final field the array uses in row_end.
            We need this to figure out if the template is too small or large

        row_end: integer (optional)
            Use if the array wraps to cover additional lines.

        sep: integer (optional)
            Separator to use if we go beyond the template."""

        # Simplified input for single-line arrays
        if row_end == None:
            row_end = row_start

        sub = _SubHelper()
        for row in range(row_start, row_end+1):

            j = self.current_row + row
            line = self.data[j]

            if row == row_end:
                f_end = field_end
            else:
                f_end = 99999
            sub.set_array(value, field_start, f_end)
            field_start = 0

            newline = re.sub(self.reg, sub.replace_array, line)
            self.data[j] = newline

        # Sometimes an array is too large for the example in the template
        # This is resolved by adding more fields at the end
        if sub.counter < len(value):
            for val in value[sub.counter:]:
                newline = newline.rstrip() + sep + str(val)

            self.data[j] = newline

        # Sometimes an array is too small for the template
        # This is resolved by removing fields
        elif len(value) > sub.counter:

            # TODO - Figure out how to handle this.
            # Ideally, we'd remove the extra field placeholders
            raise ValueError("Array is too small for the template.")

        self.data[j] += "\n"
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/filewrap.py/InputFileGenerator.transfer_array/swapped operands of `>`