"""
    sleep_comp.py - component that does one thing and does it
                     well. Sleep. 

                     Useful for slowing down a simulation to see
                     what is happening
"""

# pylint: disable-msg=E0611,F0401
from openmdao.main.api import Component
from openmdao.main.datatypes.api import Float

import time

class SleepComponent(Component):
    """Sleep for a given number of secons"""
    
    # pylint: disable-msg=E1101
    sleep_time = Float(0.0, iotype='in', desc='The number of seconds to sleep')

    def execute(self):
        time.sleep( self.sleep_time )

"""
    sleep_comp.py - component that does one thing and does it
                     well. Sleep. 

                     Useful for slowing down a simulation to see
                     what is happening
"""

# pylint: disable-msg=E0611,F0401
from openmdao.main.api import Component
from openmdao.main.datatypes.api import Float

import time

class SleepComponent(Component):
    """Sleep for a given number of secons"""
    
    # pylint: disable-msg=E1101
    sleep_time = Float(0.0, iotype='in', desc='The number of seconds to sleep')

    def execute(self):
        time.sleep( self.sleep_time )

sleep_comp.py - component that does one thing and does it                      well. Sleep.                        Useful for slowing down a simulation to see                      what is happening # pylint: disable-msg=E0611,F0401 Sleep for a given number of secons # pylint: disable-msg=E1101