def check_data(self, pop, expected_spikes, simtime, segment):
     neo = pop.get_data("all")
     spikes = neo.segments[segment].spiketrains
     v = neo.segments[segment].filter(name="v")[0]
     gsyn_exc = neo.segments[segment].filter(name="gsyn_exc")[0]
     for i in range(len(spikes)):
         check_neuron_data(spikes[i], v[:, i], gsyn_exc[:, i],
                           expected_spikes, simtime, pop.label, i)
 def check_data(self, pop, expected_spikes, simtime, early_neo):
     neo = pop.get_data("all")
     spikes = neo.segments[0].spiketrains
     v = neo.segments[0].filter(name="v")[0]
     gsyn_exc = neo.segments[0].filter(name="gsyn_exc")[0]
     for i in range(len(spikes)):
         check_neuron_data(spikes[i], v[:, i], gsyn_exc[:, i],
                           expected_spikes, simtime, pop.label, i)
     neo_compare.compare_blocks(neo, early_neo, same_length=False)