# Path: braubuddy/utils.py
# def abbreviate_temp_units(units):
# def convert_temp_units(temp, units_from='celsius', units_to='fahrenheit'):
# def map_temp_units_to_symbol(units):


import abc
from braubuddy import utils

class OutputError(Exception):
    """
    Raised whenever an output fails
    """


class IOutput(object):
    """
    Interface for creating an output for use with :mod:`braubuddy`.

    :param units: Temperature units to output.
    :type units: :class:`str`
    """

    __metaclass__ = abc.ABCMeta

    def __init__(self, units='celsius'):

        self.set_units(units)

    def set_units(self, new_units):
        """
        Set units to output.

        :param units: Temperature units to output.
        :type units: :class:`str`
        """

        try:

# Path: braubuddy/utils.py
# def abbreviate_temp_units(units):
# def convert_temp_units(temp, units_from='celsius', units_to='fahrenheit'):
# def map_temp_units_to_symbol(units):


# Path: braubuddy/output/base.py
import abc
from braubuddy import utils


class OutputError(Exception):
    """
    Raised whenever an output fails
    """


class IOutput(object):
    """
    Interface for creating an output for use with :mod:`braubuddy`.

    :param units: Temperature units to output.
    :type units: :class:`str`
    """

    __metaclass__ = abc.ABCMeta

    def __init__(self, units='celsius'):

        self.set_units(units)

    def set_units(self, new_units):
        """
        Set units to output.

        :param units: Temperature units to output.
        :type units: :class:`str`
        """

        try:

            self.units = utils.map_temp_units_to_symbol(new_units)