Skip to content

Commit d2a4716

Browse files
committed
add new table to concat function
1 parent aa9bbb0 commit d2a4716

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dynamic_routing_analysis/decoding_utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,6 +2448,12 @@ def concat_decoder_summary_tables(dir,savepath):
24482448
decoder_confidence_versus_trials_since_rewarded_target=pd.concat(decoder_confidence_versus_trials_since_rewarded_target_files)
24492449
decoder_confidence_versus_trials_since_rewarded_target.to_pickle(upath.UPath(savepath) / ('decoder_confidence_versus_trials_since_rewarded_target_'+str(nu)+'_units.pkl'))
24502450

2451+
decoder_confidence_all_trials_files=[]
2452+
for p in dir.glob('*decoder_confidence_all_trials_'+str(nu)+'_units.pkl'):
2453+
decoder_confidence_all_trials_files.append(pd.read_pickle(p))
2454+
decoder_confidence_all_trials=pd.concat(decoder_confidence_all_trials_files)
2455+
decoder_confidence_all_trials.to_pickle(upath.UPath(savepath) / ('decoder_confidence_all_trials_'+str(nu)+'_units.pkl'))
2456+
24512457
decoder_confidence_before_after_target_files=[]
24522458
for p in dir.glob('*decoder_confidence_before_after_target_'+str(nu)+'_units.pkl'):
24532459
decoder_confidence_before_after_target_files.append(pd.read_pickle(p))

0 commit comments

Comments
 (0)