self.config = moe.config.ConfigTree()
self.main_pipe = moe.pipeline.Pipeline(self, "main")
self.test_pipe = moe.pipeline.Pipeline(self, "test")
- self.status = moe.status.MoeStatus()
+ self.status = moe.status.Status()
def __getitem__(self, key):
return self.config[key]
class MoeStatusInvalid(Exception):
pass
-class MoeStatus:
+class Status:
"""Moe status file."""
def __init__(self):
if type(v) == types.ListType: vals = v
else: vals = [v]
for w in vals:
- if isinstance(w, MoeStatus):
+ if isinstance(w, Status):
l.append(prefix + k + "(\n")
l.extend(self.str_lines(prefix+" "))
l.append(prefix + ")\n")
this.read_val(k, v)
elif x.endswith("("):
k = x[:-1]
- new = MoeStatus()
+ new = Status()
this.read_val(k, new)
stk.append(this)
this = new