Skip to content

Commit 98fb5d2

Browse files
authored
Merge pull request #123 from braingram/unit_test
expand quantity anyof test to include unit
2 parents 664d218 + 24384e4 commit 98fb5d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+15
-181
lines changed

resources/stsci.edu/schemas/affine-1.5.0.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ allOf:
1919
representing the linear transformation in an affine transform.
2020
anyOf:
2121
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
22-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
2322
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2423
- type: array
2524
items:
@@ -36,7 +35,6 @@ allOf:
3635
representing the translation in an affine transform.
3736
anyOf:
3837
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
39-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
4038
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
4139
- type: array
4240
items:

resources/stsci.edu/schemas/airy-1.4.0.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ allOf:
1818
properties:
1919
theta_b:
2020
anyOf:
21-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
2221
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2322
- type: number
2423
description: |

resources/stsci.edu/schemas/airy_disk2d-1.2.0.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,21 @@ allOf:
2020
properties:
2121
amplitude:
2222
anyOf:
23-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
2423
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2524
- type: number
2625
description: Amplitude of the Airy function.
2726
x_0:
2827
anyOf:
29-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3028
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3129
- type: number
3230
description: x position of the maximum of the Airy function.
3331
y_0:
3432
anyOf:
35-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3633
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3734
- type: number
3835
description: y position of the maximum of the Airy function.
3936
radius:
4037
anyOf:
41-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
4238
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
4339
- type: number
4440
description: The radius of the Airy disk (radius of the first zero).

resources/stsci.edu/schemas/arccosine1d-1.2.0.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ allOf:
2020
properties:
2121
amplitude:
2222
anyOf:
23-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
2423
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2524
- type: number
2625
description: Oscillation amplitude.
2726
frequency:
2827
anyOf:
29-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3028
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3129
- type: number
3230
description: Oscillation frequency.
3331
phase:
3432
anyOf:
35-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3633
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3734
- type: number
3835
description: Oscillation phase.

resources/stsci.edu/schemas/arcsine1d-1.2.0.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ allOf:
2020
properties:
2121
amplitude:
2222
anyOf:
23-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
2423
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2524
- type: number
2625
description: Oscillation amplitude.
2726
frequency:
2827
anyOf:
29-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3028
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3129
- type: number
3230
description: Oscillation frequency.
3331
phase:
3432
anyOf:
35-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3633
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3734
- type: number
3835
description: Oscillation phase.

resources/stsci.edu/schemas/arctangent1d-1.2.0.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ allOf:
2020
properties:
2121
amplitude:
2222
anyOf:
23-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
2423
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2524
- type: number
2625
description: Oscillation amplitude.
2726
frequency:
2827
anyOf:
29-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3028
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3129
- type: number
3230
description: Oscillation frequency.
3331
phase:
3432
anyOf:
35-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3633
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3734
- type: number
3835
description: Oscillation phase.

resources/stsci.edu/schemas/blackbody-1.2.0.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ allOf:
2525
properties:
2626
scale:
2727
anyOf:
28-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
2928
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3029
- type: number
3130
description: Scale factor.
3231
temperature:
3332
anyOf:
34-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3533
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3634
description: Blackbody temperature.
3735

resources/stsci.edu/schemas/bonne_equal_area-1.5.0.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ allOf:
3838
properties:
3939
theta1:
4040
anyOf:
41-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
4241
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
4342
- type: number
4443
description: |

resources/stsci.edu/schemas/box1d-1.2.0.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,16 @@ allOf:
2424
properties:
2525
amplitude:
2626
anyOf:
27-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
2827
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
2928
- type: number
3029
description: Amplitude.
3130
x_0:
3231
anyOf:
33-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3432
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3533
- type: number
3634
description: Position of the center of the box model.
3735
width:
3836
anyOf:
39-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
4037
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
4138
- type: number
4239
description: Width of box.

resources/stsci.edu/schemas/box2d-1.2.0.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,26 @@ allOf:
2828
properties:
2929
amplitude:
3030
anyOf:
31-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3231
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3332
- type: number
3433
description: Amplitude.
3534
x_0:
3635
anyOf:
37-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
3836
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
3937
- type: number
4038
description: x position of the center of the box model.
4139
x_width:
4240
anyOf:
43-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
4441
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
4542
- type: number
4643
description: x width of box.
4744
y_0:
4845
anyOf:
49-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
5046
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
5147
- type: number
5248
description: y position of the center of the box model.
5349
y_width:
5450
anyOf:
55-
- tag: "tag:astropy.org:astropy/units/quantity-1.*"
5651
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
5752
- type: number
5853
description: y width of box.

0 commit comments

Comments
 (0)