#NEWLINE# def check_data( self , traj ) : #NEWLINE# #INDENT# traj . f_load ( load_data = 2 ) #NEWLINE# for name in traj . f_iter_runs ( ) : #NEWLINE# #INDENT# spikes = traj . res . runs [ self ] . spm . nspikes #NEWLINE# self . assertTrue ( ( spikes > 0 ) ) #NEWLINE# voltage = traj . res . crun . sm . values [ 0 , : ] #NEWLINE# times = traj . res . crun . sm . times #NEWLINE# self . assertTrue ( ( len ( voltage ) > 0 ) ) #NEWLINE# self . assertTrue ( ( len ( times ) > 0 ) )