Skip to content
Snippets Groups Projects
Commit eaa01647 authored by Simon Wittl's avatar Simon Wittl
Browse files

Uv

parent e407bf54
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,9 @@ This data structure use always a human-readable `.json` for storing header infor
## CLI
CLI tools for the validation of folder are automatically created.
To use the current tool just use:
```ps
uvx --from git+https://mygit.th-deg.de/roboct/definitions/json_schemas projection_validator --help
```
......@@ -37,6 +39,8 @@ This schema defines the properties for projection data in THD JSON format.
### Examples
Python example to validate a projection file:
```python:../scripts/validate_file.py
from thd_json.projection import get_projection_validator
from pathlib import Path
......@@ -53,6 +57,8 @@ if __name__ == '__main__':
main()
```
Python example to validate a folder of projections
```python:../scripts/validate_folder.py:o:main
def main():
projection_validator = get_projection_validator()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment