Skip to content

Commit

Permalink
updated test_starfield.py
Browse files Browse the repository at this point in the history
  • Loading branch information
s0larish committed Nov 12, 2024
1 parent 6f3fc65 commit d94047d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion simpunch/tests/test_starfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,16 @@ def _sample_ndcube(shape: tuple, code:str = "PM1", level:str = "0") -> NDCube:

@pytest.fixture
def sample_ndcollection() -> NDCollection:
input_data = sample_ndcube((2048, 2048))
shape = (2048, 2048)
wcs = WCS(naxis=2)
wcs.wcs.ctype = "HPLN-ARC", "HPLT-ARC"
wcs.wcs.cunit = "deg", "deg"
wcs.wcs.cdelt = 0.1, 0.1
wcs.wcs.crpix = 0, 0
wcs.wcs.crval = 1, 1
wcs.wcs.cname = "HPC lon", "HPC lat"

input_data = NDCube(np.random.random(shape).astype(np.float32), wcs=wcs)
return NDCollection(
[("-60.0 deg", input_data),
("0.0 deg", input_data),
Expand Down

0 comments on commit d94047d

Please sign in to comment.