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

Method append

python/ray/tune/utils/mock.py:78–84  ·  view source on GitHub ↗

May append a new snapshot to the sequence.

(self, new_snapshot: Dict[str, str])

Source from the content-addressed store, hash-verified

76 self._snapshot = []
77
78 def append(self, new_snapshot: Dict[str, str]):
79 """May append a new snapshot to the sequence."""
80 if not new_snapshot:
81 # Don't add an empty snapshot.
82 return
83 if not self._snapshot or new_snapshot != self._snapshot[-1]:
84 self._snapshot.append(new_snapshot)
85
86 def max_running_trials(self) -> int:
87 """Outputs the max number of running trials at a given time.

Callers 15

setup.pyFile · 0.45
_find_bazel_binFunction · 0.45
buildFunction · 0.45
_walk_thirdparty_dirFunction · 0.45
pip_runFunction · 0.45
_bindMethod · 0.45
_remoteMethod · 0.45
__str__Method · 0.45
__init__Method · 0.45
__str__Method · 0.45
startMethod · 0.45

Calls

no outgoing calls

Tested by 15

fetch_prometheusFunction · 0.36
fetch_prometheus_metricsFunction · 0.36
conditionMethod · 0.36
conditionMethod · 0.36
oomerFunction · 0.36
get_config_differencesFunction · 0.36
mock_async_llm_classFunction · 0.36
mock_from_vllm_configFunction · 0.36