Skip to content

Commit aa9bbb0

Browse files
committed
more robust method to get unique areas in a results file
1 parent 5c5ca7e commit aa9bbb0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/dynamic_routing_analysis/decoding_utils.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,10 +1321,8 @@ def concat_decoder_results(files,savepath=None,return_table=True,single_session=
13211321
half_shifts=shifts
13221322

13231323
half_shift_inds=np.arange(len(half_shifts))
1324-
1325-
areas=decoder_results[session_id]['areas']
13261324

1327-
#TODO: ####option to exclude areas with multiple probes in a session or SC subdivisions####
1325+
areas=list(decoder_results[session_id]['results'].keys())
13281326

13291327
#TODO: add decoder accuracy using all trials (no shift)
13301328

@@ -1360,7 +1358,7 @@ def concat_decoder_results(files,savepath=None,return_table=True,single_session=
13601358
probe_name=aa.split('_probe')[1]
13611359
elif '_all' in aa:
13621360
area_name=aa.split('_all')[0]
1363-
probe_name='all_probes'
1361+
probe_name='all'
13641362
else:
13651363
area_name=aa
13661364
probe_name=''
@@ -1851,7 +1849,7 @@ def concat_trialwise_decoder_results(files,savepath=None,return_table=False,n_un
18511849
probe_name=aa.split('_probe')[1]
18521850
elif '_all' in aa:
18531851
area_name=aa.split('_all')[0]
1854-
probe_name='all_probes'
1852+
probe_name='all'
18551853
else:
18561854
area_name=aa
18571855
probe_name=''

0 commit comments

Comments
 (0)