Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
    

src/t/r/troy-0.0.3/troy/overlay/overlay.py   troy(Download)
            raise TypeError ("expected PilotDescription, got %s" % type(p_descr))
 
        p = troy.Pilot (self.session, p_descr, _overlay=self)
 
        self.pilots[p.id] = p

src/t/r/troy-0.0.3/troy/plugins/workload_dispatcher/plugin_workload_dispatcher_sagapilot.py   troy(Download)
                # reconnect to the given pilot -- this is likely to pull the
                # instance from a cache, so should not cost too much.
                pilot      = troy.Pilot (self.session, pilot_id, _instance_type='sagapilot')
                troy._logger.info ('workload dispatch : dispatch %-18s to %s' \
                                % (uid, pilot._get_instance('sagapilot')[1]))

src/t/r/troy-0.0.3/troy/plugins/workload_dispatcher/plugin_workload_dispatcher_bigjob.py   troy(Download)
                # reconnect to the given pilot -- this is likely to pull the
                # instance from a cache, so should not cost too much.
                pilot      = troy.Pilot (overlay.session, pilot_id, _instance_type='bigjob')
                troy._logger.info ('workload dispatch : dispatch %-18s to %s' \
                                % (uid, pilot._get_instance('bigjob')))

src/t/r/troy-0.0.3/troy/workload/workload_manager.py   troy(Download)
                # get troys idea of resource configuration
                pilot_id     = unit.pilot_id
                pilot        = troy.Pilot (self.session, pilot_id)
                resource_cfg = self.session.get_resource_config (pilot.resource)
 

src/t/r/troy-0.0.3/troy/workload/data_stager.py   troy(Download)
            return
 
        pilot    = troy.Pilot (unit.session, unit.pilot_id)
        resource = pilot.resource
 
            return
 
        pilot    = troy.Pilot (unit.session, unit.pilot_id)
        resource = pilot.resource
        workdir  = unit.working_directory

src/t/r/troy-0.0.3/troy/plugins/workload_dispatcher/plugin_workload_dispatcher_local.py   troy(Download)
 
                pid            = unit.pilot_id
                pilot          = troy.Pilot (overlay.session, pid)
                pilot_instance = pilot._get_instance ('default')
                unit_instance  = pilot_instance.submit_unit (unit_descr)