Skip to content

Commit

Permalink
add message for saving summary tables
Browse files Browse the repository at this point in the history
  • Loading branch information
egmcbride committed Oct 29, 2024
1 parent 2205b3d commit c7a0392
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 @@ -1321,8 +1321,12 @@ def concat_decoder_results(files,savepath=None,return_table=True,single_session=

if single_session:
linear_shift_df.to_csv(upath.UPath(savepath / (session_id+'_linear_shift_decoding_results.csv')))

else:
linear_shift_df.to_csv(upath.UPath(savepath / 'all_linear_shift_decoding_results.csv'))

print('saved decoder results table to:',savepath)

except Exception as e:
print(e)
print('error saving linear shift df')
Expand Down Expand Up @@ -2001,6 +2005,8 @@ def concat_trialwise_decoder_results(files,savepath=None,return_table=False,n_un
decoder_confidence_versus_trials_since_rewarded_target.to_pickle(upath.UPath(savepath) / (temp_session_str+'decoder_confidence_versus_trials_since_rewarded_target'+n_units_str+'.pkl'))
decoder_confidence_before_after_target.to_pickle(upath.UPath(savepath) / (temp_session_str+'decoder_confidence_before_after_target'+n_units_str+'.pkl'))

print('saved '+n_units_str+' decoder confidence tables to:',savepath)

if return_table:
return decoder_confidence_versus_response_type,decoder_confidence_dprime_by_block,decoder_confidence_by_switch,decoder_confidence_versus_trials_since_rewarded_target,decoder_confidence_before_after_target

Expand Down

0 comments on commit c7a0392

Please sign in to comment.