broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

evaluation_group: astro-celestial-tangent-projection

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/abs(d['z']) if d['z']!=0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
The adapter reports an incorrect chart east while other fields remain valid.

A supplied unnormalized direction basis has dot products east e, north n, and center z. The TAN chart accepts z>0 and returns e/z,n/z. Scale s and reference pixels rx,ry map this chart to detector pixels. Behind-plane rays are explicitly returned as None. Output fields are defined by: chart_east = d['e']/d['z'] if d['z']>0 else None; chart_north = d['n']/d['z'] if d['z']>0 else None; pixel_x = d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None; pixel_y = d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None; chart_valid = d['z']>0; reciprocal_center = 1/d['z'] if d['z']>0 else None

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']!=0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

meaning: Fixture-count band, not measured model difficulty

deps: stdlib

evaluation_group: astro-celestial-tangent-projection

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['e'] if d['z']>0 and d['e']!=0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
The adapter reports an incorrect chart north while other fields remain valid.

A supplied unnormalized direction basis has dot products east e, north n, and center z. The TAN chart accepts z>0 and returns e/z,n/z. Scale s and reference pixels rx,ry map this chart to detector pixels. Behind-plane rays are explicitly returned as None. Output fields are defined by: chart_east = d['e']/d['z'] if d['z']>0 else None; chart_north = d['n']/d['z'] if d['z']>0 else None; pixel_x = d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None; pixel_y = d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None; chart_valid = d['z']>0; reciprocal_center = 1/d['z'] if d['z']>0 else None

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['rx']+d['e']/d['z']*d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

evaluation_group: astro-celestial-tangent-projection

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
The adapter reports an incorrect pixel x while other fields remain valid.

A supplied unnormalized direction basis has dot products east e, north n, and center z. The TAN chart accepts z>0 and returns e/z,n/z. Scale s and reference pixels rx,ry map this chart to detector pixels. Behind-plane rays are explicitly returned as None. Output fields are defined by: chart_east = d['e']/d['z'] if d['z']>0 else None; chart_north = d['n']/d['z'] if d['z']>0 else None; pixel_x = d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None; pixel_y = d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None; chart_valid = d['z']>0; reciprocal_center = 1/d['z'] if d['z']>0 else None

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['rx']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

evaluation_group: astro-celestial-tangent-projection

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']-d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
The adapter reports an incorrect pixel y while other fields remain valid.

A supplied unnormalized direction basis has dot products east e, north n, and center z. The TAN chart accepts z>0 and returns e/z,n/z. Scale s and reference pixels rx,ry map this chart to detector pixels. Behind-plane rays are explicitly returned as None. Output fields are defined by: chart_east = d['e']/d['z'] if d['z']>0 else None; chart_north = d['n']/d['z'] if d['z']>0 else None; pixel_x = d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None; pixel_y = d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None; chart_valid = d['z']>0; reciprocal_center = 1/d['z'] if d['z']>0 else None

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>=0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

evaluation_group: astro-celestial-tangent-projection

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']!=0, 'reciprocal_center': 1/d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
The adapter reports an incorrect chart valid while other fields remain valid.

A supplied unnormalized direction basis has dot products east e, north n, and center z. The TAN chart accepts z>0 and returns e/z,n/z. Scale s and reference pixels rx,ry map this chart to detector pixels. Behind-plane rays are explicitly returned as None. Output fields are defined by: chart_east = d['e']/d['z'] if d['z']>0 else None; chart_north = d['n']/d['z'] if d['z']>0 else None; pixel_x = d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None; pixel_y = d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None; chart_valid = d['z']>0; reciprocal_center = 1/d['z'] if d['z']>0 else None

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': d['z'] if d['z']>0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

evaluation_group: astro-celestial-tangent-projection

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'chart_east': d['e']/d['z'] if d['z']>0 else None, 'chart_north': d['n']/d['z'] if d['z']>0 else None, 'pixel_x': d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None, 'pixel_y': d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None, 'chart_valid': d['z']>0, 'reciprocal_center': 1/abs(d['z']) if d['z']!=0 else None}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 10.25, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 0, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.0, 'chart_north': 0.0, 'pixel_x': 10.0, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.75, 'pixel_x': 9.75, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 2, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 2.0, 'chart_north': 3.0, 'pixel_x': 1.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 2: [({'e': 3, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 10.375, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 1, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.25, 'chart_north': 0.0, 'pixel_x': 10.125, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.75, 'pixel_x': 9.625, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 3, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 3.0, 'chart_north': 3.0, 'pixel_x': 1.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 3: [({'e': 4, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 10.5, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 2, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.5, 'chart_north': 0.0, 'pixel_x': 10.25, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.75, 'pixel_x': 9.5, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 4, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 4.0, 'chart_north': 3.0, 'pixel_x': 2.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 4: [({'e': 5, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 10.625, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 5, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 3, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 0.75, 'chart_north': 0.0, 'pixel_x': 10.375, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.25, 'chart_north': 0.75, 'pixel_x': 9.375, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 5, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 5.0, 'chart_north': 3.0, 'pixel_x': 2.5, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})], 5: [({'e': 6, 'n': 3, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 10.75, 'pixel_y': 20.375, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 0, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 6, 'n': 3, 'z': -2, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': None, 'chart_north': None, 'pixel_x': None, 'pixel_y': None, 'chart_valid': False, 'reciprocal_center': None}), ({'e': 4, 'n': 0, 'z': 4, 's': 2, 'rx': 10, 'ry': 20}, {'chart_east': 1.0, 'chart_north': 0.0, 'pixel_x': 10.5, 'pixel_y': 20.0, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 4, 's': -2, 'rx': 10, 'ry': 20}, {'chart_east': 1.5, 'chart_north': 0.75, 'pixel_x': 9.25, 'pixel_y': 19.625, 'chart_valid': True, 'reciprocal_center': 0.25}), ({'e': 6, 'n': 3, 'z': 1, 's': 2, 'rx': 0, 'ry': 0}, {'chart_east': 6.0, 'chart_north': 3.0, 'pixel_x': 3.0, 'pixel_y': 1.5, 'chart_valid': True, 'reciprocal_center': 1.0})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
The adapter reports an incorrect reciprocal center while other fields remain valid.

A supplied unnormalized direction basis has dot products east e, north n, and center z. The TAN chart accepts z>0 and returns e/z,n/z. Scale s and reference pixels rx,ry map this chart to detector pixels. Behind-plane rays are explicitly returned as None. Output fields are defined by: chart_east = d['e']/d['z'] if d['z']>0 else None; chart_north = d['n']/d['z'] if d['z']>0 else None; pixel_x = d['rx']+d['e']/d['z']/d['s'] if d['z']>0 else None; pixel_y = d['ry']+d['n']/d['z']/d['s'] if d['z']>0 else None; chart_valid = d['z']>0; reciprocal_center = 1/d['z'] if d['z']>0 else None

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'plane_east': d['e'], 'plane_north': d['n']+d['b']*(1-d['z']), 'hemisphere': 'front' if d['z']>=0 else 'back', 'undo_obliqueness_east': d['e']-d['a']*(1-d['z']), 'undo_obliqueness_north': d['n']-d['b']*(1-d['z']), 'center_offset': 1-d['z']}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 3.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 1.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 2, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 2.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 2.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 2, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 2, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 2, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 2, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 5.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': -1.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 2, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 4, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 0, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 2, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 1.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 3.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})], 2: [({'e': 3, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 4.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 2.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 3, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 3.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 3.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 3, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 3, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 3, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 3, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 6.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': 0.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 3, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 5, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 1, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 3, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 2.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 4.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})], 3: [({'e': 4, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 5.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 3.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 4, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 4.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 4.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 4, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 4, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 4, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 4, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 7.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': 1.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 4, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 6, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 2, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 4, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 3.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 5.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})], 4: [({'e': 5, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 6.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 4.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 5, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 5.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 5.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 5, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 5, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 5, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 5, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 8.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': 2.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 5, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 7, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 3, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 5, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 4.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 6.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})], 5: [({'e': 6, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 7.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 5.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 6, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 6.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 6.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 6, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 6, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 6, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 6, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 9.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': 3.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 6, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 8, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 4, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 6, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 5.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 7.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

evaluation_group: astro-celestial-sin-projection

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'plane_east': d['e']+d['a']*d['z'], 'plane_north': d['n']+d['b']*(1-d['z']), 'hemisphere': 'front' if d['z']>=0 else 'back', 'undo_obliqueness_east': d['e']-d['a']*(1-d['z']), 'undo_obliqueness_north': d['n']-d['b']*(1-d['z']), 'center_offset': 1-d['z']}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'e': 2, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 3.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 1.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 2, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 2.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 2.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 2, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 2, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 2, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 2, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 5.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': -1.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 2, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 4, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 0, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 2, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 1.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 3.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})], 2: [({'e': 3, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 4.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 2.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 3, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 3.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 3.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 3, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 3, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 3, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 3, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 6.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': 0.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 3, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 5, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 1, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 3, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 2.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 4.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})], 3: [({'e': 4, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 5.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 3.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 4, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 4.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 4.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 4, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 4, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 4, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 4, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 7.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': 1.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 4, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 6, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 2, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 4, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 3.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 5.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})], 4: [({'e': 5, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 6.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 4.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 5, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 5.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 5.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 5, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 5, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 5, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 5, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 8.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': 2.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 5, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 7, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 3, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 5, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 4.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 6.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})], 5: [({'e': 6, 'n': 3, 'z': 0.5, 'a': 2, 'b': -3}, {'plane_east': 7.0, 'plane_north': 1.5, 'hemisphere': 'front', 'undo_obliqueness_east': 5.0, 'undo_obliqueness_north': 4.5, 'center_offset': 0.5}), ({'e': 6, 'n': 3, 'z': 0.5, 'a': 0, 'b': 0}, {'plane_east': 6.0, 'plane_north': 3.0, 'hemisphere': 'front', 'undo_obliqueness_east': 6.0, 'undo_obliqueness_north': 3.0, 'center_offset': 0.5}), ({'e': 6, 'n': 3, 'z': 1, 'a': 2, 'b': -3}, {'plane_east': 6, 'plane_north': 3, 'hemisphere': 'front', 'undo_obliqueness_east': 6, 'undo_obliqueness_north': 3, 'center_offset': 0}), ({'e': 6, 'n': 3, 'z': -0.5, 'a': 2, 'b': -3}, {'plane_east': 9.0, 'plane_north': -1.5, 'hemisphere': 'back', 'undo_obliqueness_east': 3.0, 'undo_obliqueness_north': 7.5, 'center_offset': 1.5}), ({'e': 6, 'n': 3, 'z': 0, 'a': 2, 'b': -3}, {'plane_east': 8, 'plane_north': 0, 'hemisphere': 'front', 'undo_obliqueness_east': 4, 'undo_obliqueness_north': 6, 'center_offset': 1}), ({'e': 6, 'n': 3, 'z': 0.5, 'a': -2, 'b': 4}, {'plane_east': 5.0, 'plane_north': 5.0, 'hemisphere': 'front', 'undo_obliqueness_east': 7.0, 'undo_obliqueness_north': 1.0, 'center_offset': 0.5})]}
for i, (record, expected) in enumerate(fixtures[N]):
    check('astronomical fixture %s' % i, solve(record), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
The adapter reports an incorrect plane east while other fields remain valid.

A reduced SIN sky projection supplies direction east e,north n,center z and obliqueness coefficients a,b. Its plane coordinates are e+a*(1-z),n+b*(1-z). Orthographic mode a=b=0 still has front/back hemisphere ambiguity; forward metadata preserves z for inverse branch selection. Output fields are defined by: plane_east = d['e']+d['a']*(1-d['z']); plane_north = d['n']+d['b']*(1-d['z']); hemisphere = 'front' if d['z']>=0 else 'back'; undo_obliqueness_east = d['e']-d['a']*(1-d['z']); undo_obliqueness_north = d['n']-d['b']*(1-d['z']); center_offset = 1-d['z']

split: open-access