Skip to content

Conversions utilities#47

Merged
jorgepiloto merged 2 commits intoAeroPython:masterfrom
jorgepiloto:conversions
Mar 15, 2020
Merged

Conversions utilities#47
jorgepiloto merged 2 commits intoAeroPython:masterfrom
jorgepiloto:conversions

Conversation

@jorgepiloto
Copy link
Copy Markdown
Member

This pull request solves for #45 by introducing the Pint as default units manager. By simply running:

from skaero import units as u

# Altitude conversion
alt = 10000.00 * u.foot
alt_meters = alt.to(u.meters)

This package does not introduce any other dependencies being a lightweight implementation.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #47 into master will increase coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #47      +/-   ##
==========================================
+ Coverage   72.61%   72.78%   +0.16%     
==========================================
  Files          10       10              
  Lines         325      327       +2     
==========================================
+ Hits          236      238       +2     
  Misses         89       89
Impacted Files Coverage Δ
src/skaero/__init__.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1263eea...f7f89ad. Read the comment docs.

@jorgepiloto jorgepiloto merged commit 2a703b4 into AeroPython:master Mar 15, 2020
@jorgepiloto jorgepiloto deleted the conversions branch March 15, 2020 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants