Closed mortendahl closed 2 years ago
Through-out PyMoose, support and rewrite this:
storage_rep = { "alice": {}, "carole": {}, "bob": {"x_arg": x_arg}, } runtime_rep = LocalMooseRuntime(storage_mapping=storage_rep) _ = runtime_rep.evaluate_computation( computation=comp_rep, role_assignment={"alice": "alice", "bob": "bob", "carole": "carole"}, arguments={"x_uri": "x_arg"}, )
to this:
# only partially specified storage_rep = { "bob": {"x_arg": x_arg}, } runtime_rep = LocalMooseRuntime(storage_mapping=storage_rep) _ = runtime_rep.evaluate_computation( computation=comp_rep, role_assignment={"alice": "alice", "bob": "bob", "carole": "carole"}, arguments={"x_uri": "x_arg"}, )
and potentially allow a partial role assignment as well, eg empty in the example above.
once we've moved role_assignment to the constructor (#1094), this will be much easier :+1:
role_assignment
Through-out PyMoose, support and rewrite this:
to this:
and potentially allow a partial role assignment as well, eg empty in the example above.