"""
Implementation of an OmniGraph node that subtracts a value from a double3 array
"""


class OgnTestSubtract:
    @staticmethod
    def compute(db):
        input_array = db.inputs.in_array
        # print(input_array)
        _ = db.inputs.value_to_subtract
        # print(value_to_subtract)

        db.outputs.out_array_size = input_array.shape[0]
        output_array = db.outputs.out_array

        output_array[:, 1] += 1

        return True
