flowcraft/generator/inspect.py
def _update_process_resources(self, process, vals):
        """Updates the resources info in :attr:`processes` dictionary.
        """

        resources = ["cpus"]

        for r in resources:
            if not self.processes[process][r]:
                try:
                    self.processes[process][r] = vals[0]["cpus"]
                # When the trace column is not present
                except KeyError:
                    pass
def _update_process_resources(self, process, vals):
        """Updates the resources info in :attr:`processes` dictionary.
        """

        resources = ["cpus"]

        for r in resources:
            if not self.processes[process][r]:
                try:
                    self.processes[process][r] = vals[0]["cpus"]
                # When the trace column is not present
                except KeyError:
                    pass
def _update_process_resources ( self , process , vals ) : resources = [ "cpus" ] for r in resources : if not self . processes [ process ] [ r ] : try : self . processes [ process ] [ r ] = vals [ 0 ] [ "cpus" ] # When the trace column is not present except KeyError : pass
Updates the resources info in :attr:`processes` dictionary.
Updates the resources info in : attr : processes dictionary .