fits-validator-0.3.0
توضیحات
DKIST fits data validator
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fits-validator-0.3.0 |
| نام | fits-validator |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | NSO / AURA |
| ایمیل نویسنده | "aderks@nso.edu" |
| آدرس صفحه اصلی | https://bitbucket.org/dkistdc/dkist_hdr_validator/src/master/ |
| آدرس اینترنتی | https://pypi.org/project/fits-validator/ |
| مجوز | MIT |
DKIST Data Ingest Validator
===========================
An interface containing a validator and a generator of FITS header schemas with
schema implementations for DKIST specs:
- SPEC-0122 Rev C: Data received from the summit
- SPEC-0214 Rev ?: Data published by the Data Center (incomplete)
Features
--------
- Uses `voluptuous <https://pypi.org/project/voluptuous/>`__ schemas to
validate a given input header
- 3 keyword validations: type validation, required-ness validation, and value validation
- Failure exceptions include a dictionary of validation failure causes
Installation
------------
.. code:: bash
pip install fits-validator
Examples
--------
.. code:: python
from fits_validator import spec122_validator, Spec122ValidationException
try:
spec122_validator('dkist_rosa0181200000_observation.fits')
except Spec122ValidationException as e:
print(e)
#Errors during validation: errors={'PAC__007': 'expected str', 'ID___003': 'required key not provided', 'NAXIS3': 'required key not provided'}
This project is Copyright (c) AURA/NSO.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl fits-validator-0.3.0:
pip install fits-validator-0.3.0.whl
نصب پکیج tar.gz fits-validator-0.3.0:
pip install fits-validator-0.3.0.tar.gz