(domain, spec, ctrl, trial, view, eid, tid)
| 239 | |
| 240 | |
| 241 | def call_domain(domain, spec, ctrl, trial, view, eid, tid): |
| 242 | rv = {"loss": None, "status": "fail"} |
| 243 | # TODO: rt unused |
| 244 | rt = coarse_utcnow() |
| 245 | # print "in call domain for spec", str(spec) |
| 246 | promise = None |
| 247 | fn, pyll_rval = domain.evaluate_async(spec, ctrl) |
| 248 | promise = IPYAsync(view.apply_async(fn, pyll_rval), domain, rv, eid, tid, ctrl) |
| 249 | |
| 250 | return promise |
no test coverage detected