Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use and enforce Astropy compliant units #59

Merged
merged 2 commits into from
May 10, 2016
Merged

Use and enforce Astropy compliant units #59

merged 2 commits into from
May 10, 2016

Commits on May 10, 2016

  1. Use Astropy compatible units

    Pim Schellart authored and Pim Schellart committed May 10, 2016
    Configuration menu
    Copy the full SHA
    f29f532 View commit details
    Browse the repository at this point in the history
  2. Enforce Astropy compliant unit string

    The Schema.addField method now first attempts to construct
    an astropy.units.Unit object from the provided unit string.
    This will raise a ValueError if the string is non-compliant.
    The optional keyword argument parse_strict from
    astropy.units.Unit is also added to addField.
    It has three levels: 'raise' (default), 'warn' and 'silent'.
    The latter causes any unit string to be accepted.
    Also add Schema.checkUnits to allow a full Shema to be validated.
    Pim Schellart authored and Pim Schellart committed May 10, 2016
    Configuration menu
    Copy the full SHA
    44a9d06 View commit details
    Browse the repository at this point in the history