Skip to content

Commit

Permalink
Merge pull request #822 from FCP-INDI/1.2.0_dev
Browse files Browse the repository at this point in the history
1.2.0 dev - fixed bids_utils handling of BIDS sidecar json's.
  • Loading branch information
sgiavasis committed Aug 10, 2018
2 parents d893f6e + 5d8d450 commit a390456
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bids_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def bids_retrieve_params(bids_config_dict, f_dict, dbg=False):
should be printed, defaults to "False"
:return: returns a dictionary that contains the BIDS parameters
"""

params = {}

t_dict = bids_config_dict # pointer to current dictionary
Expand All @@ -111,7 +110,7 @@ def bids_retrieve_params(bids_config_dict, f_dict, dbg=False):
t_dict = t_dict[key]
else:
if dbg:
print "Could find %s, so going with %s" % (key,
print "Couldn't find %s, so going with %s" % (key,
"-".join([level, "none"]))
key = "-".join([level, "none"])
if key in t_dict:
Expand Down Expand Up @@ -198,7 +197,7 @@ def bids_parse_sidecar(config_dict, dbg=False):
bids_config.update(t_params)

# add in the information from this config file
t_config = config_dict[cp][0]
t_config = config_dict[cp]
if t_config is list:
t_config = t_config[0]
bids_config.update(t_config)
Expand Down

0 comments on commit a390456

Please sign in to comment.