from research import *
s=begin(1017,'Festival scale and anchor identification','Which source constraints determine the fitted walk’s scale and placement?',{'counts':[30,29,28,27,26,25,24,10],'fixed_landings':{'step2':1446,'step7':536}},['File58 festival walk','C1016'])
v=s['inputs']['counts'];p2=sum(v[:2]);p7=sum(v[:7]);scale=F(1446-536,p7-p2);anchor=1446+scale*p2;landings=[anchor-scale*sum(v[:i]) for i in range(9)]
finish(s,{'scale':scale,'anchor':anchor,'all_landings':landings,'status':'conditional reconstruction of an already fitted source family'},'The two fixed role positions recover scale7 and anchor1859, after which all supplied boundaries follow. This replaces two parameters with two equivalent constraints, not two new predictions.','Hold those role positions and test a controlled order change.',{'scale_anchor':(scale,anchor)==(7,1859),'complete_landings':landings==[1859,1649,1446,1250,1061,879,704,536,466]})
