MCPcopy
hub / github.com/ray-project/ray / get_context

Method get_context

python/ray/util/client/__init__.py:335–340  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

333 self._inside_client_test = False
334
335 def get_context(self):
336 try:
337 return self._cxt.__getattribute__("handler")
338 except AttributeError:
339 self._cxt.handler = _default_context
340 return self._cxt.handler
341
342 def set_context(self, cxt):
343 old_cxt = self.get_context()

Callers 12

set_contextMethod · 0.95
is_defaultMethod · 0.95
connectMethod · 0.95
disconnectMethod · 0.95
remoteMethod · 0.95
__getattr__Method · 0.95
is_connectedMethod · 0.95
initMethod · 0.95
shutdownMethod · 0.95
connectFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

__getattribute__Method · 0.45

Tested by

no test coverage detected