(cls)
| 5 | |
| 6 | def register_conditioning_method(name: str): |
| 7 | def wrapper(cls): |
| 8 | if __CONDITIONING_METHOD__.get(name, None): |
| 9 | raise NameError(f"Name {name} is already registered!") |
| 10 | __CONDITIONING_METHOD__[name] = cls |
| 11 | return cls |
| 12 | return wrapper |
| 13 | |
| 14 | def get_conditioning_method(name: str, operator, noiser, **kwargs): |
nothing calls this directly
no outgoing calls
no test coverage detected