Skip to content

Commit

Permalink
add new table to concat function
Browse files Browse the repository at this point in the history
  • Loading branch information
egmcbride committed Dec 3, 2024
1 parent aa9bbb0 commit d2a4716
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dynamic_routing_analysis/decoding_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2448,6 +2448,12 @@ def concat_decoder_summary_tables(dir,savepath):
decoder_confidence_versus_trials_since_rewarded_target=pd.concat(decoder_confidence_versus_trials_since_rewarded_target_files)
decoder_confidence_versus_trials_since_rewarded_target.to_pickle(upath.UPath(savepath) / ('decoder_confidence_versus_trials_since_rewarded_target_'+str(nu)+'_units.pkl'))

decoder_confidence_all_trials_files=[]
for p in dir.glob('*decoder_confidence_all_trials_'+str(nu)+'_units.pkl'):
decoder_confidence_all_trials_files.append(pd.read_pickle(p))
decoder_confidence_all_trials=pd.concat(decoder_confidence_all_trials_files)
decoder_confidence_all_trials.to_pickle(upath.UPath(savepath) / ('decoder_confidence_all_trials_'+str(nu)+'_units.pkl'))

decoder_confidence_before_after_target_files=[]
for p in dir.glob('*decoder_confidence_before_after_target_'+str(nu)+'_units.pkl'):
decoder_confidence_before_after_target_files.append(pd.read_pickle(p))
Expand Down

0 comments on commit d2a4716

Please sign in to comment.