Create a new composite transform that is the result of applying transform *a* then transform *b*. You will generally not call this constructor directly but write ``a + b`` instead, which will automatically choose the best kind of composite transform instance
(self, a, b, **kwargs)
| 2399 | pass_through = True |
| 2400 | |
| 2401 | def __init__(self, a, b, **kwargs): |
| 2402 | """ |
| 2403 | Create a new composite transform that is the result of |
| 2404 | applying transform *a* then transform *b*. |
| 2405 | |
| 2406 | You will generally not call this constructor directly but write ``a + |
| 2407 | b`` instead, which will automatically choose the best kind of composite |
| 2408 | transform instance to create. |
| 2409 | """ |
| 2410 | if a.output_dims != b.input_dims: |
| 2411 | raise ValueError("The output dimension of 'a' must be equal to " |
| 2412 | "the input dimensions of 'b'") |
| 2413 | self.input_dims = a.input_dims |
| 2414 | self.output_dims = b.output_dims |
| 2415 | |
| 2416 | super().__init__(**kwargs) |
| 2417 | self._a = a |
| 2418 | self._b = b |
| 2419 | self.set_children(a, b) |
| 2420 | |
| 2421 | def frozen(self): |
| 2422 | # docstring inherited |
nothing calls this directly
no test coverage detected