Skip to content

Commit

Permalink
Merge pull request #53 from mdboom/transform-domain
Browse files Browse the repository at this point in the history
Add domain on transforms
  • Loading branch information
mdboom committed Feb 25, 2015
2 parents b3ec772 + c908d42 commit ad2d8fc
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
45 changes: 45 additions & 0 deletions schemas/stsci.edu/asdf/0.1.0/transform/domain.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/asdf/0.1.0/transform/domain"
tag: "tag:stsci.edu:asdf/0.1.0/transform/domain"
title: >
Defines the domain of an input axis.
description: >
Describes the range of acceptable input values to a particular
axis of a transform.
examples:
-
- The domain ``[0, 1)``.
- |
!transform/domain
lower: 0
upper: 1
includes_lower: true
properties:
lower:
description: >
The lower value of the domain. If not provided, the
domain has no lower limit.
type: number
default: -inf

upper:
description: >
The upper value of the domain. If not provided, the
domain has no upper limit.
type: number
default: inf

includes_lower:
description: If `true`, the domain includes `lower`.
type: boolean
default: false

includes_upper:
description: If `true`, the domain includes `upper`.
type: boolean
default: false
9 changes: 9 additions & 0 deletions schemas/stsci.edu/asdf/0.1.0/transform/transform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ anyOf:
description: |
A user-friendly name for the transform, to give it extra
meaning.
domain:
description: |
The domain (range of valid inputs) to the transform.
Each entry in the list corresponds to an input dimension.
type: array
items:
$ref: domain

inverse:
description: |
Explicitly sets the inverse transform of this transform.
Expand Down

0 comments on commit ad2d8fc

Please sign in to comment.