Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhaharsh committed Mar 5, 2024
2 parents 36449f7 + 470ddf1 commit e92d839
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocol/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2102,12 +2102,12 @@ def parse(self, bidsfile, params=None):
# check if an alternative name for the class exists
pname_alter = ANALOGUES_DICT.get(pname, pname)
value = get_bids_param_value(bidsdata, pname)
if value is not None:
# If even one value is not None, we will set the non_empty_flag
self.non_empty_flag = True

try:
self.add_parameter(pname_alter, value)
# If even one parameter was added, the non_empty_flag
# will be set to True
self.non_empty_flag = True
except ImportError:
# if the parameter class does not exist, log the error
# and continue to the next parameter
Expand Down

0 comments on commit e92d839

Please sign in to comment.