From 5bfec01a48302a8bb2cf5da88097dec43814320e Mon Sep 17 00:00:00 2001 From: Jayraj Dulange Date: Wed, 14 Aug 2024 13:03:16 +0000 Subject: [PATCH] another fix --- sunkit_image/coalignment/tests/test_coalignment.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sunkit_image/coalignment/tests/test_coalignment.py b/sunkit_image/coalignment/tests/test_coalignment.py index 34ba24a8..7869fe5c 100644 --- a/sunkit_image/coalignment/tests/test_coalignment.py +++ b/sunkit_image/coalignment/tests/test_coalignment.py @@ -27,11 +27,12 @@ def test_coalignment(is_test_map): date_start = "2014-01-08T09:57:27" date_end = "2014-01-08T10:00:00" aia193_test_map = sunpy.map.Map(Fido.fetch(Fido.search(a.Time(start=date_start, end=date_end), a.Instrument('aia'), a.Wavelength(193 * u.angstrom)))) - nx = (aia193_test_map.scale.axis1 * aia193_test_map.dimensions.x) / is_test_map.scale.axis1 - ny = (aia193_test_map.scale.axis2 * aia193_test_map.dimensions.y) / is_test_map.scale.axis2 + eis_map = is_test_map + nx = (aia193_test_map.scale.axis1 * aia193_test_map.dimensions.x) / eis_map.scale[0] + ny = (aia193_test_map.scale.axis2 * aia193_test_map.dimensions.y) / eis_map.scale[1] aia193_test_downsampled_map = aia193_test_map.resample(u.Quantity([nx, ny])) - coaligned_is_map = coalign(aia193_test_downsampled_map, is_test_map, "match_template") - assert coaligned_is_map.data.shape == is_test_map.data.shape + coaligned_is_map = coalign(aia193_test_downsampled_map, eis_map, "match_template") + assert coaligned_is_map.data.shape == eis_map.data.shape assert coaligned_is_map.wcs.wcs.crval[0] == aia193_test_downsampled_map.wcs.wcs.crval[0] assert coaligned_is_map.wcs.wcs.crval[1] == aia193_test_downsampled_map.wcs.wcs.crval[1]