Skip to content

Commit

Permalink
make cache path str type
Browse files Browse the repository at this point in the history
  • Loading branch information
egmcbride committed Oct 31, 2024
1 parent a230bcb commit a2c2a1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dynamic_routing_analysis/decoding_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,11 +998,11 @@ def decode_context_with_linear_shift(session=None,params=None,trials=None,units=
decoder_results[session_id]['session_info'] = session_info
#keep track of which cache path was used
try:
decoder_results[session_id]['trial_cache_path'] = npc_lims.get_cache_path('trials',session_id,version='any')
decoder_results[session_id]['trial_cache_path'] = str(npc_lims.get_cache_path('trials',session_id,version='any'))
except:
decoder_results[session_id]['trial_cache_path'] = ''
try:
decoder_results[session_id]['unit_cache_path'] = npc_lims.get_cache_path('units',session_id,version='any')
decoder_results[session_id]['unit_cache_path'] = str(npc_lims.get_cache_path('units',session_id,version='any'))
except:
decoder_results[session_id]['unit_cache_path'] = ''

Expand Down Expand Up @@ -2011,7 +2011,7 @@ def concat_trialwise_decoder_results(files,savepath=None,return_table=False,n_un
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



def concat_decoder_summary_tables(dir,savepath):

#create summary folder if does not exist
Expand Down

0 comments on commit a2c2a1c

Please sign in to comment.