def periodrec_worker(task):
pfpkl, simbasedir, period_tolerance = task<EOL>try:<EOL><INDENT>return periodicvar_recovery(pfpkl,<EOL>simbasedir,<EOL>period_tolerance=period_tolerance)<EOL><DEDENT>except Exception as e:<EOL><INDENT>LOGEXCEPTION('<STR_LIT>' % repr(task))<EOL>return None<EOL><DEDENT>
This is a parallel worker for running period-recovery.

    Parameters
    ----------

    task : tuple
        This is used to pass args to the `periodicvar_recovery` function::

            task[0] = period-finding result pickle to work on
            task[1] = simbasedir
            task[2] = period_tolerance

    Returns
    -------

    dict
        This is the dict produced by the `periodicvar_recovery` function for the
        input period-finding result pickle.