transform/add-1.2.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.2.0
  forward:
    - !transform/generic-1.2.0
      n_inputs: 1
      n_outputs: 2
    - !transform/generic-1.2.0
      n_inputs: 1
      n_outputs: 2

Original Schema

%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/asdf/transform/add-1.2.0"
tag: "tag:stsci.edu:asdf/transform/add-1.2.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.2.0
        forward:
          - !transform/generic-1.2.0
            n_inputs: 1
            n_outputs: 2
          - !transform/generic-1.2.0
            n_inputs: 1
            n_outputs: 2

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