https://github.com/danporter/i16_check_nexus_data
Validate NeXus files on I16 against Diamond standard
https://github.com/danporter/i16_check_nexus_data
Last synced: over 1 year ago
JSON representation
Validate NeXus files on I16 against Diamond standard
- Host: GitHub
- URL: https://github.com/danporter/i16_check_nexus_data
- Owner: DanPorter
- License: apache-2.0
- Created: 2024-11-11T11:46:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-11T12:45:23.000Z (over 1 year ago)
- Last Synced: 2025-01-16T06:50:38.042Z (over 1 year ago)
- Language: Python
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Diamond I16 NeXus Validation
Check and validate NeXus files against Diamond specifications
**Version 0.1**
| By Dan Porter |
|----------------------|
| Diamond Light Source |
| 2024 |
### TL;DR - Usage
```bash
$ check_nexus 12345.nxs
```
### Description
The `check_metadata` function compares HDF paths and attributes against the standard NeXus structure of i16 at
Diamond Light Source:
- `"diamond standard nexus structure V2.docx"`
In addition, the nexus file is compared to the NXmx application definition:
- [NXmx](https://manual.nexusformat.org/classes/applications/NXmx.html#nxmx)
The `validate_nexus` function uses the [punx](https://github.com/prjemian/punx) package to valiate the nexus file against the current standard spec.
More info here:
- https://manual.nexusformat.org/validation.html
- https://manual.nexusformat.org/datarules.html#version-3