Download experiments/dev_geometry.py from PureOne/YEORIN-X-v4-Research: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/datasets/PureOne/YEORIN-X-v4-Research/resolve/main/experiments/dev_geometry.py
- Command line
-
hf download hf://datasets/PureOne/YEORIN-X-v4-Research/experiments/dev_geometry.py
-
curl -L -o dev_geometry.py https://huggingface.co/datasets/PureOne/YEORIN-X-v4-Research/resolve/main/experiments/dev_geometry.py
566 Bytes
| """Small deterministic geometry sanity check. No performance claim.""" | |
| import json,time | |
| import numpy as np | |
| from yeorinx3.control import ActionLibrary | |
| from yeorinx3.geometry import rotation_linearization_envelope | |
| s=time.perf_counter();lib=ActionLibrary(160,90,90,np.ones((90,160)),directions=16) | |
| c=lib.choose([.015,-.004],[[.015,-.004]],[[.002,.001]],.0002,8.) | |
| print('build_s',time.perf_counter()-s,'templates',len(lib.angles),'choice',c) | |
| print('fieldmax',np.linalg.norm(lib.field(c),axis=-1).max()) | |
| print('envelope',rotation_linearization_envelope(160,90,.024,.10)) | |