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 081f662 commit 1de9f6cCopy full SHA for 1de9f6c
tools/update_intended_for.py
@@ -49,6 +49,7 @@ def main():
49
was_str = True
50
intended_for = [intended_for]
51
52
+ update = False
53
for i, intended_for_path in enumerate(intended_for):
54
if intended_for_path.startswith("bids:"):
55
continue
@@ -59,6 +60,8 @@ def main():
59
60
print(f"[red]will not update {intended_for_path}[/red]")
61
62
63
+ update = True
64
+
65
filename = Path(intended_for_path).name
66
subject = filename.split("_")[0]
67
@@ -75,10 +78,9 @@ def main():
75
78
if was_str:
76
79
intended_for = intended_for[0]
77
80
- if VERBOSE:
- print(intended_for)
-
81
- if not DRY_RUN:
+ if update and not DRY_RUN:
82
+ if VERBOSE:
83
+ print(intended_for)
84
with open(json_path, "w") as f:
85
content["IntendedFor"] = intended_for
86
json.dump(content, f, indent=1)
0 commit comments