示例#1
0
文件: codelet.py 项目: wandgibaut/dct
 def proc(self, activation):
     mem = dct.get_memory_objects(
         self.root_codelet_dir,
         'behavioral-input-memories/perceptual-memory', 'inputs')
     dct.set_memory_objects(self.root_codelet_dir,
                            'motor-behavioral-memory', 'I', mem['I'],
                            'outputs')
示例#2
0
文件: codelet.py 项目: wandgibaut/dct
 def proc(self, activation):
     mem = dct.get_memory_objects(self.root_codelet_dir,
                                  'perceptual-sensory-memory', 'outputs')
     if mem['I'] is None:
         mem['I'] = -1
     I = int(mem['I']) + 1
     dct.set_memory_objects(self.root_codelet_dir,
                            'perceptual-sensory-memory', 'I', str(I),
                            'outputs')
示例#3
0
 def proc(self, activation):
     mem = dct.get_memory_objects(self.root_codelet_dir,
                                  'motor-input-memories/behavioral-memory',
                                  'inputs')
     # dct.set_memory_objects(self.root_codelet_dir, 'final-memory', 'I', mem['I'], 'outputs')
     print(mem['I'])