StretchRegistry#

class glue.config.StretchRegistry(*args, **kwargs)#

Bases: DictRegistry

Stores custom stretches

Methods Summary

__call__(label)

This is provided so that registry instances can be used as decorators.

add(label, stretch_cls[, display])

Add a new item to the registry.

display_func(label)

Methods Documentation

__call__(label)#

This is provided so that registry instances can be used as decorators. The decorators should add the decorated code object to the registry, and return the original function

add(label, stretch_cls, display=None)#

Add a new item to the registry.

display_func(label)#