add-1.1.0

Perform a list of subtransforms in parallel and then add their results together.

Description

Each of the subtransforms must have the same number of inputs and outputs.

Outline

Schema Definitions

This node must validate against all of the following:

  • This type is an object with the following properties:

    • forward

      arrayRequired
      No length restriction

      Items in the array are restricted to the following types:

Examples

A list of transforms, performed in parallel and added together:

!transform/add-1.1.0
  forward:
    - !transform/shift-1.1.0
      offset: 2.0
    - !transform/shift-1.1.0
      offset: 3.0

Original Schema

%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/asdf/transform/add-1.1.0"
title: >
  Perform a list of subtransforms in parallel and then
  add their results together.

description: |
  Each of the subtransforms must have the same number of inputs and
  outputs.

examples:
  -
    - A list of transforms, performed in parallel and added together
    - |
      !transform/add-1.1.0
        forward:
          - !transform/shift-1.1.0
            offset: 2.0
          - !transform/shift-1.1.0
            offset: 3.0

allOf:
  - $ref: "transform-1.1.0"
  - properties:
      forward:
        type: array
        items:
          $ref: "transform-1.1.0"
    required: [forward]
...