Similar to While() but execute nets_or_steps when condition_blob_or_net returns false
(name, condition_blob_or_net, nets_or_steps)
| 410 | |
| 411 | |
| 412 | def Until(name, condition_blob_or_net, nets_or_steps): |
| 413 | """ |
| 414 | Similar to While() but execute nets_or_steps when |
| 415 | condition_blob_or_net returns false |
| 416 | """ |
| 417 | if isinstance(condition_blob_or_net, core.Net): |
| 418 | stop_blob = GetConditionBlobFromNet(condition_blob_or_net) |
| 419 | nets_or_steps = _PrependNets(nets_or_steps, condition_blob_or_net) |
| 420 | else: |
| 421 | stop_blob = core.BlobReference(str(condition_blob_or_net)) |
| 422 | |
| 423 | return core.scoped_execution_step( |
| 424 | _get_next_step_name('Until', name), |
| 425 | nets_or_steps, |
| 426 | should_stop_blob=stop_blob) |
| 427 | |
| 428 | |
| 429 | def DoWhile(name, condition_blob_or_net, nets_or_steps): |
nothing calls this directly
no test coverage detected
searching dependent graphs…