Skip to content

Commit

Permalink
strip objects from session_info
Browse files Browse the repository at this point in the history
  • Loading branch information
egmcbride committed Oct 28, 2024
1 parent 69eeb1b commit 0450817
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 @@ -989,6 +989,12 @@ def decode_context_with_linear_shift(session=None,params=None,trials=None,units=
decoder_results[session_id]['n_units'] = n_units_input
decoder_results[session_id]['n_repeats'] = n_repeats

import dataclasses
session_info=dataclasses.asdict(session_info)
for ii in session_info.keys():
if type(session_info[ii]) not in [int, str, bool, dict, list]:
session_info[ii]=str(session_info[ii])

decoder_results[session_id]['session_info'] = session_info
#keep track of which cache path was used
try:
Expand Down

0 comments on commit 0450817

Please sign in to comment.