JBlaschke/call-monitor

REGISTRY

Opened this issue · 0 comments

Just to clarify, for the example provided in section Registering your own Argument Handlers, is the last line
REGISTRY.add(np.ndarray, NPHandler)
or
REGISTRY.add(np.ndarray, Handler)?

Here's what I've tried, but not sure what would be the correct usage.

>>> REGISTRY.add(np.ndarray, NPHandler)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'NPHandler' is not defined
>>> REGISTRY.add(np.ndarray, Handler)

Thanks!