Coverage for tests/test_normMap.py : 95%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Check NormMap(Frame): output = input """
[100.0, 2000.0, 3000.0], [-100.0, -1000.0, -2000.0], ], dtype=float)
"""Check that NormMap(Mapping) is an error"""
"""Check NormMap(SkYFrame):
longitude wrapped to [0, 2 pi] if pi < |latitude| < 2 pi: offset longitude by pi and set latitutude = 2 pi - latitude else: wrap pi to range [-pi, pi]
This test intentionally stays a small delta away from boundaries (except 0) because the expected behavior is not certain and not important """
# I'm not sure why 100 is needed; I expected ~10 (2 pi)
[0, 0], [-eps, 0], # lon out of range [2 * pi - eps, 0], [2 * pi + eps, 0], # lon out of range [0, -pi / 2 + eps], [0, -pi / 2 - eps], # lat too small; offset lat by pi [0, pi / 2 - eps], [0, pi / 2 + eps], # lat too big; offset lat by pi ], dtype=float)).T.copy() # applyForward can't accept a view [0, 0], [2 * pi - eps, 0], [2 * pi - eps, 0], [eps, 0], [0, -pi / 2 + eps], [pi, -pi / 2 + eps], [0, pi / 2 - eps], [pi, pi / 2 - eps], ]).T
unittest.main() |