Skip to content

Commit

Permalink
fix variable names in LPU
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyin committed Dec 1, 2015
1 parent 5c87337 commit da2961e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions neurokernel/LPU/LPU.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def post_run(self):
if self.debug:
# for file in self.in_gpot_files.itervalues():
# file.close()
if self.my_num_gpot_neurons > 0:
if self.total_num_gpot_neurons > 0:
self.gpot_buffer_file.close()
if self.total_synapses + len(self.input_neuron_list) > 0:
self.synapse_state_file.close()
Expand Down Expand Up @@ -673,7 +673,7 @@ def run_step(self):
self.first_step = False

if self.debug:
if self.my_num_gpot_neurons > 0:
if self.total_num_gpot_neurons > 0:
self.gpot_buffer_file.root.array.append(
self.buffer.gpot_buffer.get()
.reshape(1, self.gpot_delay_steps, -1))
Expand Down Expand Up @@ -746,12 +746,12 @@ def _init_objects(self):
tables.Float64Atom(), (0, num))
'''
if self.my_num_gpot_neurons > 0:
if self.total_num_gpot_neurons > 0:
self.gpot_buffer_file = tables.openFile(self.id + '_buffer.h5','w')
self.gpot_buffer_file.createEArray(
"/", "array",
tables.Float64Atom(),
(0, self.gpot_delay_steps, self.my_num_gpot_neurons))
(0, self.gpot_delay_steps, self.total_num_gpot_neurons))

if self.total_synapses + len(self.input_neuron_list) > 0:
self.synapse_state_file = tables.openFile(self.id + '_synapses.h5',
Expand Down

0 comments on commit da2961e

Please sign in to comment.