Adds an operator call to the currently active Net.
(self, op_type)
| 225 | return NetBuilder.current().current_net(name=name) |
| 226 | |
| 227 | def __getattr__(self, op_type): |
| 228 | """ |
| 229 | Adds an operator call to the currently active Net. |
| 230 | """ |
| 231 | if op_type.startswith('__'): |
| 232 | raise AttributeError() |
| 233 | # We want hasattr to work properly even if no context is active. |
| 234 | if NetBuilder.current(required=False) is None: |
| 235 | raise AttributeError('No active NetBuilder.') |
| 236 | return getattr(self.net(), op_type) |
| 237 | |
| 238 | def task_group(self): |
| 239 | """ |