|
@@ -160,7 +160,7 @@ def _goto_mode(new_mode, model_name=None):
|
|
|
|
|
|
def _input(value, port=None):
|
|
|
# Ugly json encoding of primitives
|
|
|
- print("[IN] %s" % value)
|
|
|
+ #print("[IN] %s" % value)
|
|
|
if port is None:
|
|
|
port = taskname
|
|
|
if isinstance(value, type([])):
|
|
@@ -213,10 +213,10 @@ def _output(expected=None):
|
|
|
try:
|
|
|
while len(outputs) < 2:
|
|
|
time.sleep(0.5)
|
|
|
- print("Sleep for output: " + str(outputs))
|
|
|
+ #print("Sleep for output: " + str(outputs))
|
|
|
|
|
|
del outputs[0]
|
|
|
- print("[OUT] %s" % outputs[0])
|
|
|
+ #print("[OUT] %s" % outputs[0])
|
|
|
except:
|
|
|
raise UnknownError()
|
|
|
|
|
@@ -296,11 +296,11 @@ def alter_context(model_name, metamodel_name):
|
|
|
registered_metamodels[model_name] = metamodel_name
|
|
|
|
|
|
# Main MvC operations
|
|
|
-def init(address_param="http://127.0.0.1:8001", timeout=20.0):
|
|
|
+def init(address_param="127.0.0.1:8001", timeout=20.0):
|
|
|
"""Starts up the connection to the Modelverse."""
|
|
|
global mode
|
|
|
global address
|
|
|
- address = address_param
|
|
|
+ address = "http://" + address_param
|
|
|
start_time = time.time()
|
|
|
task = random.random()
|
|
|
while 1:
|