Example #1
0
 def check(self):
     ok = self.same(self.domain_id, ec.domain_id())
     ok = ok and self.same(self.instance_id, ec.instance_id())
     ok = ok and self.same(self.job_id, ec.job_id())
     ok = ok and self.same(self.pe_id, ec.pe_id())
     ok = ok and self.same(self.channel, ec.channel(self))
     ok = ok and self.same(self.local_channel, ec.local_channel(self))
     ok = ok and self.same(self.max_channels, ec.max_channels(self))
     ok = ok and self.same(self.local_max_channels, ec.local_max_channels(self))
     return ok
Example #2
0
 def check(self):
     ok = self.same(self.domain_id, ec.domain_id())
     ok = ok and self.same(self.instance_id, ec.instance_id())
     ok = ok and self.same(self.job_id, ec.job_id())
     ok = ok and self.same(self.pe_id, ec.pe_id())
     ok = ok and self.same(self.channel, ec.channel(self))
     ok = ok and self.same(self.local_channel, ec.local_channel(self))
     ok = ok and self.same(self.max_channels, ec.max_channels(self))
     ok = ok and self.same(self.local_max_channels,
                           ec.local_max_channels(self))
     return ok
Example #3
0
 def __enter__(self):
     self.channel = ec.channel(self)
Example #4
0
 def __enter__(self):
     self.channel = ec.channel(self)