Skip to content

Commit ae22d23

Browse files
committed
Fix docbuild
1 parent f91c5e8 commit ae22d23

File tree

2 files changed

+82
-82
lines changed

2 files changed

+82
-82
lines changed

ndcube/wcs/wrappers/resampled_wcs.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -45,33 +45,33 @@ class ResampledLowLevelWCS(BaseWCSWrapper):
4545
and that shift is given by the offset (+1 in the x-axis and +2 along the y-axis),
4646
which is in units of original pixel widths.
4747
48-
resampled original
49-
factor=3
50-
offset=2
51-
52-
0.5 4.5 *-----------*-----------*-----------*-----------*
53-
| |
54-
2/6 4 | |
55-
| |
56-
1/6 3.5 * * * * *
57-
| |
58-
0 3 | |
59-
| |
60-
-1/3 2.5 * * * * *
61-
| |
62-
-2/6 2 | |
63-
| |
64-
-0.5 1.5 *-----------*-----------*-----------*-----------*
65-
| |
66-
-4/6 1 | |
67-
| |
68-
-5/6 0.5 * * * * *
69-
| |
70-
-1 0 | |
71-
| |
72-
-1-1/6 -0.5 * * * * *
73-
-0.5 0 0.5 1 1.5 2 2.5 3 3.5 original pixel indices
74-
-1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1 resampled pixel indices: factor=2, offset=1
48+
| resampled original
49+
| factor=3
50+
| offset=2
51+
52+
| 0.5 4.5 *-----------*-----------*-----------*-----------*
53+
| | |
54+
| 2/6 4 | |
55+
| | |
56+
| 1/6 3.5 * * * * *
57+
| | |
58+
| 0 3 | |
59+
| | |
60+
| -1/3 2.5 * * * * *
61+
| | |
62+
| -2/6 2 | |
63+
| | |
64+
| -0.5 1.5 *-----------*-----------*-----------*-----------*
65+
| | |
66+
| -4/6 1 | |
67+
| | |
68+
| -5/6 0.5 * * * * *
69+
| | |
70+
| -1 0 | |
71+
| | |
72+
| -1-1/6 -0.5 * * * * *
73+
| -0.5 0 0.5 1 1.5 2 2.5 3 3.5 original pixel indices
74+
| -1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1 resampled pixel indices: factor=2, offset=1
7575
"""
7676

7777
def __init__(self, wcs, factor, offset=0):

ndcube/wcs/wrappers/tests/test_resampled_wcs.py

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -212,64 +212,64 @@ def test_resampled_pixel_to_world_values(four_five_wcs, factor, offset, expected
212212
213213
Test Case 1
214214
215-
resampled original
216-
factor=3
217-
offset=0
218-
219-
1+1/6 4.5* * * * *
220-
| | |
221-
1 4 | | |
222-
| | |
223-
5/6 3.5* * * * *
224-
| | |
225-
4/6 3 | | |
226-
| | |
227-
| | |
228-
0.5 2.5*---------*---------*---------*---------*
229-
| | |
230-
2/6 2 | | |
231-
| | |
232-
1/6 1.5* * * * *
233-
| | |
234-
0 1 | | |
235-
| | |
236-
-1/6 0.5* * * * *
237-
| | |
238-
-2/6 0 | | |
239-
| | |
240-
-0.5 -0.5*---------*---------*---------*---------*
241-
-0.5 0 0.5 1 1.5 2 2.5 3 3.5 original pixel indices
242-
-0.5 -0.25 0 0.25 0.5 0.75 1 1.25 1.5 resampled pixel indices: factor=2, offset=0
215+
| resampled original
216+
| factor=3
217+
| offset=0
218+
219+
| 1+1/6 4.5* * * * *
220+
| | | |
221+
| 1 4 | | |
222+
| | | |
223+
| 5/6 3.5* * * * *
224+
| | | |
225+
| 4/6 3 | | |
226+
| | | |
227+
| | | |
228+
| 0.5 2.5*---------*---------*---------*---------*
229+
| | | |
230+
| 2/6 2 | | |
231+
| | | |
232+
| 1/6 1.5* * * * *
233+
| | | |
234+
| 0 1 | | |
235+
| | | |
236+
| -1/6 0.5* * * * *
237+
| | | |
238+
| -2/6 0 | | |
239+
| | | |
240+
| -0.5 -0.5*---------*---------*---------*---------*
241+
| -0.5 0 0.5 1 1.5 2 2.5 3 3.5 original pixel indices
242+
| -0.5 -0.25 0 0.25 0.5 0.75 1 1.25 1.5 resampled pixel indices: factor=2, offset=0
243243
244244
Test Case 2
245245
246-
resampled original
247-
factor=3
248-
offset=2
249-
250-
0.5 4.5 *-----------*-----------*-----------*-----------*
251-
| |
252-
2/6 4 | |
253-
| |
254-
1/6 3.5 * * * * *
255-
| |
256-
0 3 | |
257-
| |
258-
-1/3 2.5 * * * * *
259-
| |
260-
-2/6 2 | |
261-
| |
262-
-0.5 1.5 *-----------*-----------*-----------*-----------*
263-
| |
264-
-4/6 1 | |
265-
| |
266-
-5/6 0.5 * * * * *
267-
| |
268-
-1 0 | |
269-
| |
270-
-1-1/6 -0.5 * * * * *
271-
-0.5 0 0.5 1 1.5 2 2.5 3 3.5 original pixel indices
272-
-1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1 resampled pixel indices: factor=2, offset=1
246+
| resampled original
247+
| factor=3
248+
| offset=2
249+
250+
| 0.5 4.5 *-----------*-----------*-----------*-----------*
251+
| | |
252+
| 2/6 4 | |
253+
| | |
254+
| 1/6 3.5 * * * * *
255+
| | |
256+
| 0 3 | |
257+
| | |
258+
| -1/3 2.5 * * * * *
259+
| | |
260+
| -2/6 2 | |
261+
| | |
262+
| -0.5 1.5 *-----------*-----------*-----------*-----------*
263+
| | |
264+
| -4/6 1 | |
265+
| | |
266+
| -5/6 0.5 * * * * *
267+
| | |
268+
| -1 0 | |
269+
| | |
270+
| -1-1/6 -0.5 * * * * *
271+
| -0.5 0 0.5 1 1.5 2 2.5 3 3.5 original pixel indices
272+
| -1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1 resampled pixel indices: factor=2, offset=1
273273
"""
274274
wcs = four_five_wcs
275275
# Get world values of original pixel grid.

0 commit comments

Comments
 (0)