We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30c19e4 commit 710607bCopy full SHA for 710607b
nibabel/wrapstruct.py
@@ -343,7 +343,8 @@ def items(self):
343
344
def get(self, k, d=None):
345
''' Return value for the key k if present or d otherwise'''
346
- return (k in self.keys()) and self._structarr[k] or d
+ if k in self.keys(): return self._structarr[k]
347
+ else: return d
348
349
def check_fix(self, logger=None, error_level=None):
350
''' Check structured data with checks
0 commit comments