(self, key, *args, **kwargs)
| 14 | return decorator |
| 15 | |
| 16 | def get(self, key, *args, **kwargs): |
| 17 | if key == "none": |
| 18 | return None |
| 19 | quant_method_class = self._quant_methods.get(key) |
| 20 | if not quant_method_class: |
| 21 | raise ValueError(f"QuantMethod '{key}' not supported.") |
| 22 | return quant_method_class() |
| 23 | |
| 24 | |
| 25 | QUANTMETHODS = QuantMethodFactory() |
no outgoing calls