MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / wrapper

Method wrapper

src/utils/visualization.py:42–44  ·  view source on GitHub ↗
(tag, data, *args, **kwargs)

Source from the content-addressed store, hash-verified

40 add_data = getattr(self.writer, name, None)
41
42 def wrapper(tag, data, *args, **kwargs):
43 if add_data is not None:
44 add_data('{}/{}'.format(self.mode, tag), data, self.step, *args, **kwargs)
45 return wrapper
46 else:
47 # default action for returning methods defined in this class, set_step() for instance.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected