def __init__(self, sim, timeout=<NUM_LIT:10>, flush=False, **kwargs):
if int(timeout) <= <NUM_LIT:0>:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'.format(timeout))<EOL><DEDENT>self.__sim = sim<EOL>self.__timeout = timeout<EOL>self.__flush = flush<EOL>self.__kwargs = kwargs<EOL>
Constructor.

        Parameters
        ----------
        sim : Simulator
            A wrapped Simulator object
        timeout : float, optional
            An interval to update the progress bar. Given as seconds.
            Default is 10.
        flush : bool, optional
            Clear the output at finishing a simulation.
            Default is False.

        See Also
        --------
        ProgressBar