MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / ok

Method ok

tensorboard/plugin_util.py:248–253  ·  view source on GitHub ↗

Test whether `version` is permitted, else complain.

(self, version, run, tag)

Source from the content-addressed store, hash-verified

246 self._warned = False
247
248 def ok(self, version, run, tag):
249 """Test whether `version` is permitted, else complain."""
250 if 0 <= version <= self._latest_known_version:
251 return True
252 self._maybe_warn(version, run, tag)
253 return False
254
255 def _maybe_warn(self, version, run, tag):
256 if self._warned:

Callers 8

_serve_tagsMethod · 0.80
_index_implMethod · 0.80
_filter_by_versionMethod · 0.80
_index_implMethod · 0.80
tags_implMethod · 0.80
index_implMethod · 0.80
index_implMethod · 0.80
index_implMethod · 0.80

Calls 1

_maybe_warnMethod · 0.95

Tested by

no test coverage detected