Пример #1
0
def test_unpack_nddata(testdata, testvar, testmask):
    nd = NDAstroData(testdata, mask=testmask)
    nd.variance = testvar
    out_data, out_mask, out_var = NDStacker.none(nd)
    assert_allclose(out_data, testdata)
    assert_allclose(out_var, testvar)
    assert_allclose(out_mask, testmask)
Пример #2
0
def test_no_rejection(testdata):
    out_data, out_mask, out_var = NDStacker.none(testdata)
    assert_allclose(out_data, testdata)
    assert out_var is None
    assert out_mask is None