Changeset 885

Show
Ignore:
Timestamp:
10/30/2009 04:50:27 PM (2 months ago)
Author:
brodylab
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/@RewardDiscounting2/RewardDiscounting2.m

    r882 r885  
    324324        pd.hit    = value(hit_history); 
    325325         
     326        pre_left        = get_sphandle('name','left_gap_Min'); 
     327        pre_right       = get_sphandle('name','right_gap_Min'); 
     328         
     329        post_left       = get_sphandle('name','Left_PostReward'); 
     330        post_right      = get_sphandle('name','Right_PostReward'); 
     331         
    326332        choose_left     = get_sphandle('name','Choose_Left'); 
    327333        choose_right    = get_sphandle('name','Choose_Right'); 
     
    336342        reward_ratio    = get_sphandle('name','Reward_Ratio'); 
    337343         
     344        ID1 = get_sphandle('name','Indifference1'); 
     345        ID2 = get_sphandle('name','Indifference2'); 
     346        ID3 = get_sphandle('name','Indifference3'); 
     347        ID4 = get_sphandle('name','Indifference4'); 
     348        ID5 = get_sphandle('name','Indifference5'); 
     349        ID6 = get_sphandle('name','Indifference6'); 
     350        ID7 = get_sphandle('name','Indifference7'); 
     351        ID8 = get_sphandle('name','Indifference8'); 
     352         
     353        pd.pre_left        = cell2mat(get_history(pre_left{1})); 
     354        pd.pre_right       = cell2mat(get_history(pre_right{1})); 
     355        pd.post_left       = cell2mat(get_history(post_left{1})); 
     356        pd.post_right      = cell2mat(get_history(post_right{1})); 
    338357        pd.choose_left     = cell2mat(get_history(choose_left{1})); 
    339358        pd.choose_right    = cell2mat(get_history(choose_right{1})); 
     
    344363        pd.duration_ratio  = cell2mat(get_history(duration_ratio{1})); 
    345364        pd.reward_ratio    = cell2mat(get_history(reward_ratio{1})); 
    346                  
     365                pd.ID1             = cell2mat(get_history(ID1{1})); 
     366        pd.ID2             = cell2mat(get_history(ID2{1})); 
     367        pd.ID3             = cell2mat(get_history(ID3{1})); 
     368        pd.ID4             = cell2mat(get_history(ID4{1})); 
     369        pd.ID5             = cell2mat(get_history(ID5{1})); 
     370        pd.ID6             = cell2mat(get_history(ID6{1})); 
     371        pd.ID7             = cell2mat(get_history(ID7{1})); 
     372        pd.ID8             = cell2mat(get_history(ID8{1})); 
     373         
    347374                fds=fieldnames(pd); 
    348375                for fi=1:numel(fds), 
     
    350377        end 
    351378         
    352                 %sendsummary(obj,'sides',sides_history(1:n_done_trials),'protocol_data',pd); 
     379        sendsummary(obj,'sides',sides_history(1:n_done_trials),'protocol_data',pd) 
     380        sendtrial(obj) 
    353381         
    354382        SessionDefinition(obj, 'run_eod_logic_without_saving');