Skip to content

Commit 3def32f

Browse files
committed
Added ability to gather modified brain locations
1 parent 1ed5462 commit 3def32f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lfp_tools/startup_local.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def get_behavior(species, subject, exp, session, import_obj_features=True):
251251
return(df)
252252

253253

254-
def get_electrode_locations(species, subject, exp, session, chans_spc=None):
254+
def get_electrode_locations(species, subject, exp, session, chans_spc=None, modifiedInfo=False):
255255
'''
256256
Gathers electrode locations
257257
@@ -272,7 +272,10 @@ def get_electrode_locations(species, subject, exp, session, chans_spc=None):
272272
if len(session)==12: #For the cases like 201807250001
273273
session = session[:8]
274274

275-
file = '/nas_data/rawdata/sub-'+subject+'/sess-'+session+'/session_info/sub-'+subject+'_sess-'+session+'_sessioninfo.json'
275+
if modifiedInfo:
276+
file = '/nas_data/rawdata/sub-'+subject+'/sess-'+session+'/session_info/sub-'+subject+'_sess-'+session+'_sessioninfomodified.json'
277+
else:
278+
file = '/nas_data/rawdata/sub-'+subject+'/sess-'+session+'/session_info/sub-'+subject+'_sess-'+session+'_sessioninfo.json'
276279

277280
locs = general.load_json_file(file)
278281

0 commit comments

Comments
 (0)