Skip to content

Commit

Permalink
coredevice/core: core_com -> comm
Browse files Browse the repository at this point in the history
sbourdeauducq committed Nov 20, 2014
1 parent 75df0ae commit b736c30
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions artiq/coredevice/core.py
Original file line number Diff line number Diff line change
@@ -41,11 +41,11 @@ def _no_debug_unparse(label, node):


class Core:
def __init__(self, core_com, runtime_env=None):
def __init__(self, comm, runtime_env=None):
if runtime_env is None:
runtime_env = core_com.get_runtime_env()
runtime_env = comm.get_runtime_env()
self.runtime_env = runtime_env
self.core_com = core_com
self.comm = comm

def transform_stack(self, func_def, rpc_map, exception_map,
debug_unparse=_no_debug_unparse):
@@ -100,6 +100,6 @@ def run(self, k_function, k_args, k_kwargs):

# compile to machine code and run
binary = get_runtime_binary(self.runtime_env, func_def)
self.core_com.load(binary)
self.core_com.run(func_def.name)
self.core_com.serve(rpc_map, exception_map)
self.comm.load(binary)
self.comm.run(func_def.name)
self.comm.serve(rpc_map, exception_map)

0 comments on commit b736c30

Please sign in to comment.