File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/dynamic_routing_analysis Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 ))
You can’t perform that action at this time.
0 commit comments