"""Run with PYTHONPATH=src python examples/lease_example.py. A constructed mathematical example, not hardware or camera calibration. """ from yeorinx4.lease import Lease, revalidate lease=Lease(source_id=7,generation=0,profile_epoch=2,published_s=1.0, expires_s=1.010,correlation_lower=30.0,field_energy=16.0, field_max_px=5.0,residual_norm_cap=10.0) for native_cap in (0.0,1.0,10.0): result=revalidate(lease,now_s=1.005,source_id=7,generation=0, profile_epoch=2,residual_drift_cap=0.2,native_offset_cap=native_cap, pixel_cap=4.0) print('Native offset norm cap:',native_cap,'=>',result)