Skip to content

Commit

Permalink
Remove unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed May 30, 2020
1 parent 5b1bbd3 commit 2b81f05
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions megaradrp/processing/tests/test_wcalib.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,6 @@ def create_header1():
return hdr


def test_add_barycentric():
hdr = create_header1()

hdr = header_add_barycentric_correction(hdr, key='b')

# velocity
rv = -7114.518753399715
# (1 + rv / c)
factor = 0.9999762685198925

assert hdr['WCSNAMEB'] == 'Barycentric correction'
assert hdr['CTYPE1B'] == hdr['CTYPE1']
assert hdr['CRPIX1B'] == hdr['CRPIX1']
assert numpy.allclose(hdr['CRVAL1B'], hdr['CRVAL1'] * factor)
assert numpy.allclose(hdr['CDELT1B'], hdr['CDELT1'] * factor)
assert hdr['CUNIT1B'] == hdr['CUNIT1']
#
assert hdr['CRPIX2B'] == hdr['CRPIX2']
assert hdr['CRVAL2B'] == hdr['CRVAL2']
assert hdr['CDELT2B'] == hdr['CDELT2']
#
assert numpy.allclose(hdr['VELOSYSB'], rv)
assert hdr['SPECSYSB'] == 'BARYCENT'
assert hdr['SSYSOBSB'] == 'TOPOCENT'


def test_add_barycentric_missing1():
hdr = create_header1()
del hdr['RADEG']
Expand Down

0 comments on commit 2b81f05

Please sign in to comment.