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

Issue 282 use pint to check and convert units #283

Merged
merged 15 commits into from Dec 27, 2021

Commits on Dec 22, 2021

  1. Use pint for unit_utils, using h to denote hour, adding the world's c…

    …urrencies, and simplifying units according to preference; also add tests
    
    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 22, 2021
    Copy the full SHA
    903215f View commit details
    Browse the repository at this point in the history
  2. Add new dependencies to requirements

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 22, 2021
    Copy the full SHA
    5dd79fb View commit details
    Browse the repository at this point in the history
  3. Fix docstring: cubic unit with unicode

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 22, 2021
    Copy the full SHA
    327f102 View commit details
    Browse the repository at this point in the history
  4. Fix docstring examples

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 22, 2021
    Copy the full SHA
    c939538 View commit details
    Browse the repository at this point in the history
  5. Convert units and data in SensorDataSchema

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 22, 2021
    Copy the full SHA
    70fc621 View commit details
    Browse the repository at this point in the history
  6. Fix case of simple multiplier

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 22, 2021
    Copy the full SHA
    aaca612 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2021

  1. Test more unit conversions

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 23, 2021
    Copy the full SHA
    ef65235 View commit details
    Browse the repository at this point in the history
  2. Refactor unit utils

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 23, 2021
    Copy the full SHA
    044a28b View commit details
    Browse the repository at this point in the history
  3. Fix converting offset units (such as degrees Celsius)

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 23, 2021
    Copy the full SHA
    a8674f1 View commit details
    Browse the repository at this point in the history
  4. Extra testing of unit util functions, incl. conversion of offset units

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 23, 2021
    Copy the full SHA
    e48f44e View commit details
    Browse the repository at this point in the history
  5. Add missing docstring

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 23, 2021
    Copy the full SHA
    040c8ad View commit details
    Browse the repository at this point in the history
  6. Black

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 23, 2021
    Copy the full SHA
    565cc57 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2021

  1. Add inline note

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 27, 2021
    Copy the full SHA
    535cece View commit details
    Browse the repository at this point in the history
  2. Clarify what test util function does

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 27, 2021
    Copy the full SHA
    ca786b5 View commit details
    Browse the repository at this point in the history
  3. Add missing type annotation

    Signed-off-by: F.N. Claessen <felix@seita.nl>
    Flix6x committed Dec 27, 2021
    Copy the full SHA
    68d09d4 View commit details
    Browse the repository at this point in the history