Skip to content

Commit 182e88c

Browse files
committed
debug
1 parent a48f683 commit 182e88c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

curation/04_cubids_curation/rm_runentity_intendedfor.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ def update_intended_for(bids_dir, old_path, new_path):
3636
run_number = run_match.group(1)
3737
print(f"Found run-{run_number} in path: {old_rel_path}")
3838

39-
# Process each fieldmap JSON file
40-
for json_file in Path(fmap_dir).glob('*{magnitude1,magnitude2,phasediff}.json'):
39+
# Process each fieldmap JSON file - fix the glob pattern
40+
print(f"Looking for fieldmap JSONs in: {fmap_dir}")
41+
json_files = list(Path(fmap_dir).glob('*.json'))
42+
print(f"Found {len(json_files)} JSON files")
43+
44+
for json_file in json_files:
4145
print(f"Checking fieldmap JSON: {json_file}")
4246
try:
4347
with open(json_file, 'r') as f:

0 commit comments

Comments
 (0)