Skip to content

Commit 17d158f

Browse files
committed
update script
1 parent 8280696 commit 17d158f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/update_intended_for.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
from rich import print
2525

26-
VERBOSE = True
27-
DRY_RUN = False
26+
VERBOSE = False
27+
DRY_RUN = True
2828

2929

3030
def root_dir():
@@ -33,14 +33,15 @@ def root_dir():
3333

3434
def main():
3535
for json_path in root_dir().glob("**/*.json"):
36-
if VERBOSE:
37-
print(f"Checking {json_path.relative_to(root_dir())}")
3836

3937
with open(json_path) as f:
4038
content = json.load(f)
4139

4240
if "IntendedFor" not in content:
4341
continue
42+
43+
print()
44+
print(f"Checking {json_path.relative_to(root_dir())}")
4445

4546
intended_for = content["IntendedFor"]
4647

@@ -56,8 +57,7 @@ def main():
5657
if not intended_for_path.startswith(
5758
("ses-", "anat", "func", "ieeg", "fmap", "perf", "micr")
5859
):
59-
if VERBOSE:
60-
print(f"[red]will not update {intended_for_path}[/red]")
60+
print(f"[red]will not update {intended_for_path}[/red]")
6161
continue
6262

6363
filename = Path(intended_for_path).name

0 commit comments

Comments
 (0)