Skip to content

Commit 0233c22

Browse files
committed
Fix a typo I introduced into one of the doctests
1 parent 236f3ad commit 0233c22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astropy/modeling/mappings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Mapping(Model):
3737
Examples
3838
--------
3939
40-
>>> from astropy.modeling.models import Polynomial1D, Shift, Mapping
40+
>>> from astropy.modeling.models import Polynomial2D, Shift, Mapping
4141
>>> poly1 = Polynomial2D(1, c0_0=1, c1_0=2, c0_1=3)
4242
>>> poly2 = Polynomial2D(1, c0_0=1, c1_0=2.4, c0_1=2.1)
4343
>>> model = (Shift(1) & Shift(2)) | Mapping((0, 1, 0, 1)) | (poly1 & poly2)
@@ -145,7 +145,7 @@ class Identity(Mapping):
145145
146146
Transform ``(x, y)`` by a shift in x, followed by scaling the two inputs::
147147
148-
>>> from astropy.modeling.models import (Polynomial1D, Shift, Scale
148+
>>> from astropy.modeling.models import (Polynomial1D, Shift, Scale,
149149
... Identity)
150150
>>> model = (Shift(1) & Identity(1)) | Scale(1.2) & Scale(2)
151151
>>> model(1,1) # doctest: +FLOAT_CMP

0 commit comments

Comments
 (0)