Download ORCASat/ORCASat_CAD/source/validate_only.py from 5PACE/5PACE3Dmodelsatellites: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/datasets/5PACE/5PACE3Dmodelsatellites/resolve/main/ORCASat/ORCASat_CAD/source/validate_only.py
- Command line
-
hf download hf://datasets/5PACE/5PACE3Dmodelsatellites/ORCASat/ORCASat_CAD/source/validate_only.py
-
curl -L -o validate_only.py https://huggingface.co/datasets/5PACE/5PACE3Dmodelsatellites/resolve/main/ORCASat/ORCASat_CAD/source/validate_only.py
1.74 kB
| #!/usr/bin/env python3 | |
| """Resume exchange validation without regenerating unchanged CAD/GLB files.""" | |
| from pathlib import Path | |
| import json,time | |
| import build_orcasat as b | |
| import validate_release as v | |
| import check_fit | |
| def main(): | |
| start=time.time();out=Path(__file__).resolve().parent.parent;target=out/'EXPORT' | |
| b.build();b.write_manifest(out);corrections=v.correction_checks() | |
| fit=check_fit.check_fit(False) | |
| (out/'fit_checks.json').write_text(json.dumps(fit,indent=2)) | |
| assert not fit['failures'],fit['failures'] | |
| steps=v.validate_steps(out) | |
| manifest=json.loads((target/'manifest.json').read_text());glbs=v.validate_glbs(target,manifest) | |
| report={'version':'2.1','geometry':'All defined source shapes and all distinct re-imported STEP files passed Open CASCADE shape validity checks.','corrections':corrections,'targeted_fit_checks':json.loads((out/'fit_checks.json').read_text()),'STEP':steps,'GLB':glbs,'volume_method':'Adaptive face integration, relative integration epsilon 1e-8; aggregate roundtrip comparison tolerance 1e-6. Differences are reported per main scene.','SolidWorks_application_test':'Not run here; no SolidWorks runtime is available. User confirmed previous blank view was long loading.','dimensional_scope':'Reference reconstruction; exact source antenna geometry, other placements and most details estimated. No full interference, tolerance, mass or flight-configuration validation.','validation_elapsed_seconds':round(time.time()-start,1)} | |
| (out/'validation_report.json').write_text(json.dumps(report,indent=2));(target/'validation_report.json').write_text(json.dumps(glbs,indent=2)) | |
| print('VALIDATION PASS',round(time.time()-start,1),'s',flush=True) | |
| if __name__=='__main__':main() | |