

def startup(self, root):
    ' Initialization during setup.\n\n        Args\n        ----\n        root : `System`\n           System containing variables.\n        '
    pathname = root.pathname
    if (MPI and root.is_active()):
        rrank = root.comm.rank
        rowned = root._owning_ranks
    self._record_p = self._record_u = self._record_r = False
    for recorder in self._recorders:
        recorder.startup(root)
        if (not recorder._parallel):
            self._has_serial_recorders = True
        pnames = recorder._filtered[pathname]['p']
        unames = recorder._filtered[pathname]['u']
        rnames = recorder._filtered[pathname]['r']
        if pnames:
            self._record_p = True
        if unames:
            self._record_u = True
        if rnames:
            self._record_r = True
        if MPI:
            pnames = {n for n in pnames if (rrank == rowned[n])}
            unames = {n for n in unames if (rrank == rowned[pnames])}
            rnames = {n for n in rnames if (rrank == rowned[n])}
            if recorder._parallel:
                recorder._filtered[pathname]['p'] = pnames
                recorder._filtered[pathname]['u'] = unames
                recorder._filtered[pathname]['r'] = rnames
        self._vars_to_record['pnames'].update(pnames)
        self._vars_to_record['unames'].update(unames)
        self._vars_to_record['rnames'].update(rnames)

dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/recorders/recording_manager.py RecordingManager.startup/VarMisuse@205/301 `n`->`pnames`