Skip to content

Commit

Permalink
Merge pull request #20 from kiwibrew/patch-1
Browse files Browse the repository at this point in the history
Degree, Knots, hPa
  • Loading branch information
petervizi committed Jan 30, 2013
2 parents 501ea00 + 6108b28 commit 2c27010
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions eeml/__init__.py
Expand Up @@ -454,6 +454,17 @@ def __init__(self):
"""
Unit.__init__(self, 'Celsius', 'derivedSI', u'\xb0C')

class Degree(Unit):
"""
Degree of arc unit class.
"""

def __init__(self):
"""
Initialize the `Unit` parameters with Degree.
"""
Unit.__init__(self, 'Degree', 'basicSI', u'\xb0')


class Fahrenheit(Unit):
"""
Expand All @@ -467,6 +478,30 @@ def __init__(self):
Unit.__init__(self, 'Fahrenheit', 'derivedSI', u'\xb0F')


class hPa(Unit):
"""
hPa unit class.
"""

def __init__(self):
"""
Initialize the `Unit` parameters with hPa.
"""
Unit.__init__(self, 'hPa', 'derivedSI', 'hPa')


class Knots(Unit):
"""
Knots class.
"""

def __init__(self):
"""
Initialize the `Unit` parameters with Knots.
"""
Unit.__init__(self, 'Knots', 'conversionBasedUnits', u'kts')


class RH(Unit):
"""
Relative Humidity unit class.
Expand Down

0 comments on commit 2c27010

Please sign in to comment.