In [2]:
import json
In [3]:
con = 'cdmainrel'
tt='CD'
debug = True
write = False
roi = 'grayMatter'
dstype = 'raw'
r = 4 # searchlight radius
sg_params = [119, 2]
In [4]:
analysisConfig = {'con': 'cdmainrel', 'tt': 'CD', 'write': 'False', 'roi': 'grayMatter', 'dstype': 'raw', 'r': 4, 'sg_params': [119, 2]}
In [11]:
json.dumps([analysisConfig, analysisConfig, analysisConfig])
Out[11]:
In [12]:
newAnalysisConfig = json.loads(json.dumps([analysisConfig, analysisConfig, analysisConfig]))
In [13]:
newAnalysisConfig[0]
Out[13]:
Seems like we can just save all the arguments as a dict of dicts... easy!
In [8]:
type(analysisConfig) == dict
Out[8]:
In [ ]: