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 dac204c commit b297129Copy full SHA for b297129
niworkflows/interfaces/bids.py
@@ -28,6 +28,7 @@
28
import shutil
29
import os
30
import re
31
+import sys
32
33
import nibabel as nb
34
import numpy as np
@@ -64,6 +65,15 @@
64
65
LOGGER = logging.getLogger("nipype.interface")
66
67
68
+if sys.version_info < (3, 10): # PY39
69
+ builtin_zip = zip
70
+
71
+ def zip(*args, strict=False):
72
+ if strict and any(len(args[0]) != len(arg) for arg in args):
73
+ raise ValueError("strict_zip() requires all arguments to have the same length")
74
+ return builtin_zip(*args)
75
76
77
def _none():
78
return None
79
0 commit comments