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

N = 1
observations = []
def solve(d):
    return {'plane_east': d['e']+d['a']*(1-d['z']), 'plane_north': d['n']+d['a']*(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']*(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']}
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 north 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


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

N = 1
observations = []
def solve(d):
    return {'plane_east': d['e']+d['a']*(1-d['z']), 'plane_north': d['n']+d['b']*(1-d['z']), 'hemisphere': 'front', '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)

meaning: Fixture-count band, not measured model difficulty

deps: stdlib

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']*(1-d['z']), 'plane_north': d['n']+d['b']*(1-d['z']), 'hemisphere': 'front' if d['e']>=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 hemisphere 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


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

N = 1
observations = []
def solve(d):
    return {'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']}
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']*(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'], '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 undo obliqueness 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


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

N = 1
observations = []
def solve(d):
    return {'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']*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']*(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['a']*(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 undo obliqueness north 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


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

N = 1
observations = []
def solve(d):
    return {'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': 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']*(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': abs(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 center offset 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


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

N = 1
observations = []
def solve(d):
    return {'plane_east': d['e']/(1+d['z']) if d['z']>-1 else None, 'plane_north': 2*d['n']/(1+d['z']) if d['z']>-1 else None, 'valid': d['z']>-1, 'translated_east': d['ox']+2*d['e']/(1+d['z']) if d['z']>-1 else None, 'translated_north': d['oy']+2*d['n']/(1+d['z']) if d['z']>-1 else None, 'radial_scale': 2/(1+d['z']) if d['z']>-1 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': 1, 'ox': 10, 'oy': 20}, {'plane_east': 2.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 12.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 2, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 2, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 2, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 2.6666666666666665, 'plane_north': 4.0, 'valid': True, 'translated_east': 12.666666666666666, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 2, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 2.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 2.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 2, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 2: [({'e': 3, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 3.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 13.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 3, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 6.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 16.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 3, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 3, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 4.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 3, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 3.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 3.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 3, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 12.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 22.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 3: [({'e': 4, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 4, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 4, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 4, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 5.333333333333333, 'plane_north': 4.0, 'valid': True, 'translated_east': 15.333333333333332, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 4, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 4.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 4.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 4, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 16.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 26.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 4: [({'e': 5, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 5.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 15.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 5, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 10.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 20.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 5, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 5, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 6.666666666666667, 'plane_north': 4.0, 'valid': True, 'translated_east': 16.666666666666668, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 5, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 5.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 5.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 5, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 20.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 30.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 5: [({'e': 6, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 6.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 16.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 6, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 12.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 22.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 6, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 6, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': 4.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 6, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 6.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 6.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 6, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 24.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 34.0, 'translated_north': 12.0, 'radial_scale': 4.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)

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

N = 1
observations = []
def solve(d):
    return {'plane_east': 2*d['e']/(1-d['z']) if d['z']<1 else None, 'plane_north': 2*d['n']/(1+d['z']) if d['z']>-1 else None, 'valid': d['z']>-1, 'translated_east': d['ox']+2*d['e']/(1+d['z']) if d['z']>-1 else None, 'translated_north': d['oy']+2*d['n']/(1+d['z']) if d['z']>-1 else None, 'radial_scale': 2/(1+d['z']) if d['z']>-1 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': 1, 'ox': 10, 'oy': 20}, {'plane_east': 2.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 12.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 2, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 2, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 2, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 2.6666666666666665, 'plane_north': 4.0, 'valid': True, 'translated_east': 12.666666666666666, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 2, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 2.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 2.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 2, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 2: [({'e': 3, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 3.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 13.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 3, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 6.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 16.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 3, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 3, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 4.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 3, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 3.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 3.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 3, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 12.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 22.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 3: [({'e': 4, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 4, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 4, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 4, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 5.333333333333333, 'plane_north': 4.0, 'valid': True, 'translated_east': 15.333333333333332, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 4, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 4.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 4.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 4, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 16.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 26.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 4: [({'e': 5, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 5.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 15.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 5, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 10.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 20.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 5, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 5, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 6.666666666666667, 'plane_north': 4.0, 'valid': True, 'translated_east': 16.666666666666668, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 5, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 5.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 5.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 5, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 20.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 30.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 5: [({'e': 6, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 6.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 16.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 6, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 12.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 22.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 6, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 6, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': 4.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 6, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 6.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 6.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 6, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 24.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 34.0, 'translated_north': 12.0, 'radial_scale': 4.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 plane east while other fields remain valid.

A supplied direction e,n,z is mapped by a stipulated stereographic sky chart with scale 2/(1+z), valid z>-1. Reference chart origin ox,oy is added only after projection. Exact antipode has no finite chart coordinate; inputs here have z>=-1. Output fields are defined by: plane_east = 2*d['e']/(1+d['z']) if d['z']>-1 else None; plane_north = 2*d['n']/(1+d['z']) if d['z']>-1 else None; valid = d['z']>-1; translated_east = d['ox']+2*d['e']/(1+d['z']) if d['z']>-1 else None; translated_north = d['oy']+2*d['n']/(1+d['z']) if d['z']>-1 else None; radial_scale = 2/(1+d['z']) if d['z']>-1 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': 2*d['e']/(1+d['z']) if d['z']>-1 else None, 'plane_north': 2*d['n']/d['z'] if d['z']!=0 else None, 'valid': d['z']>-1, 'translated_east': d['ox']+2*d['e']/(1+d['z']) if d['z']>-1 else None, 'translated_north': d['oy']+2*d['n']/(1+d['z']) if d['z']>-1 else None, 'radial_scale': 2/(1+d['z']) if d['z']>-1 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': 1, 'ox': 10, 'oy': 20}, {'plane_east': 2.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 12.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 2, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 2, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 2, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 2.6666666666666665, 'plane_north': 4.0, 'valid': True, 'translated_east': 12.666666666666666, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 2, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 2.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 2.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 2, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 2: [({'e': 3, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 3.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 13.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 3, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 6.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 16.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 3, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 3, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 4.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 3, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 3.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 3.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 3, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 12.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 22.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 3: [({'e': 4, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 4, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 4, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 4, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 5.333333333333333, 'plane_north': 4.0, 'valid': True, 'translated_east': 15.333333333333332, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 4, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 4.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 4.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 4, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 16.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 26.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 4: [({'e': 5, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 5.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 15.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 5, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 10.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 20.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 5, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 5, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 6.666666666666667, 'plane_north': 4.0, 'valid': True, 'translated_east': 16.666666666666668, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 5, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 5.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 5.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 5, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 20.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 30.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 5: [({'e': 6, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 6.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 16.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 6, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 12.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 22.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 6, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 6, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': 4.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 6, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 6.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 6.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 6, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 24.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 34.0, 'translated_north': 12.0, 'radial_scale': 4.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)

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

N = 1
observations = []
def solve(d):
    return {'plane_east': 2*d['e']/(1+d['z']) if d['z']>-1 else None, 'plane_north': 2*d['n']/(1+abs(d['z'])), 'valid': d['z']>-1, 'translated_east': d['ox']+2*d['e']/(1+d['z']) if d['z']>-1 else None, 'translated_north': d['oy']+2*d['n']/(1+d['z']) if d['z']>-1 else None, 'radial_scale': 2/(1+d['z']) if d['z']>-1 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': 1, 'ox': 10, 'oy': 20}, {'plane_east': 2.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 12.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 2, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 2, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 2, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 2.6666666666666665, 'plane_north': 4.0, 'valid': True, 'translated_east': 12.666666666666666, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 2, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 2.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 2.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 2, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 2: [({'e': 3, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 3.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 13.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 3, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 6.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 16.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 3, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 3, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 4.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 3, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 3.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 3.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 3, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 12.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 22.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 3: [({'e': 4, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 4.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 14.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 4, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 4, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 4, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 5.333333333333333, 'plane_north': 4.0, 'valid': True, 'translated_east': 15.333333333333332, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 4, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 4.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 4.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 4, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 16.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 26.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 4: [({'e': 5, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 5.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 15.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 5, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 10.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 20.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 5, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 5, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 6.666666666666667, 'plane_north': 4.0, 'valid': True, 'translated_east': 16.666666666666668, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 5, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 5.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 5.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 5, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 20.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 30.0, 'translated_north': 12.0, 'radial_scale': 4.0})], 5: [({'e': 6, 'n': 3, 'z': 1, 'ox': 10, 'oy': 20}, {'plane_east': 6.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 16.0, 'translated_north': 23.0, 'radial_scale': 1.0}), ({'e': 6, 'n': 3, 'z': 0, 'ox': 10, 'oy': 20}, {'plane_east': 12.0, 'plane_north': 6.0, 'valid': True, 'translated_east': 22.0, 'translated_north': 26.0, 'radial_scale': 2.0}), ({'e': 6, 'n': 3, 'z': -1, 'ox': 10, 'oy': 20}, {'plane_east': None, 'plane_north': None, 'valid': False, 'translated_east': None, 'translated_north': None, 'radial_scale': None}), ({'e': 6, 'n': 3, 'z': 0.5, 'ox': 10, 'oy': 20}, {'plane_east': 8.0, 'plane_north': 4.0, 'valid': True, 'translated_east': 18.0, 'translated_north': 24.0, 'radial_scale': 1.3333333333333333}), ({'e': 6, 'n': 3, 'z': 1, 'ox': 0, 'oy': 0}, {'plane_east': 6.0, 'plane_north': 3.0, 'valid': True, 'translated_east': 6.0, 'translated_north': 3.0, 'radial_scale': 1.0}), ({'e': 6, 'n': -2, 'z': -0.5, 'ox': 10, 'oy': 20}, {'plane_east': 24.0, 'plane_north': -8.0, 'valid': True, 'translated_east': 34.0, 'translated_north': 12.0, 'radial_scale': 4.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 plane north while other fields remain valid.

A supplied direction e,n,z is mapped by a stipulated stereographic sky chart with scale 2/(1+z), valid z>-1. Reference chart origin ox,oy is added only after projection. Exact antipode has no finite chart coordinate; inputs here have z>=-1. Output fields are defined by: plane_east = 2*d['e']/(1+d['z']) if d['z']>-1 else None; plane_north = 2*d['n']/(1+d['z']) if d['z']>-1 else None; valid = d['z']>-1; translated_east = d['ox']+2*d['e']/(1+d['z']) if d['z']>-1 else None; translated_north = d['oy']+2*d['n']/(1+d['z']) if d['z']>-1 else None; radial_scale = 2/(1+d['z']) if d['z']>-1 else None

split: open-access