#NEWLINE# def test_store_and_load_large_dictionary( self ) : #NEWLINE# #INDENT# traj = Trajectory ( name = 'Testlargedict' , filename = make_temp_dir ( 'large_dict.hdf5' ) , add_time = True ) #NEWLINE# large_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for irun in range ( 1025 ) : #NEWLINE# #INDENT# large_dict [ ( 'item_%d' % traj ) ] = irun #NEWLINE# #UNINDENT# large_dict2 = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for irun in range ( 33 ) : #NEWLINE# #INDENT# large_dict2 [ ( 'item_%d' % irun ) ] = irun #NEWLINE# #UNINDENT# traj . f_add_result ( 'large_dict' , large_dict , comment = 'Huge_dict!' ) #NEWLINE# traj . f_add_result ( 'large_dict2' , large_dict2 , comment = 'Not so large dict!' ) #NEWLINE# traj . f_store ( ) #NEWLINE# traj_name = traj . v_name #NEWLINE# traj2 = Trajectory ( filename = make_temp_dir ( 'large_dict.hdf5' ) , add_time = True ) #NEWLINE# traj2 . f_load ( name = traj_name , load_data = 2 ) #NEWLINE# self . compare_trajectories ( traj , traj2 )