Skip to content

Commit

Permalink
Always remove bval/bvec files instead of using .bidsignore (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Feb 15, 2024
1 parent bee964b commit ab3856d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bidscoin/plugins/dcm2niix2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def bidscoiner_plugin(session: Path, bidsmap: Bidsmap, bidsses: Path) -> Union[N
bfile = target.with_suffix('').with_suffix(ext)
if bfile.is_file() and not bids.check_ignore(bfile.name, bidsignore, 'file'):
bdata = pd.read_csv(bfile, header=None)
if bdata.any(axis=None) and pattern not in bidsignore:
if bdata.any(axis=None):
LOGGER.warning(f"Found unexpected non-zero b-values in '{bfile}'")
LOGGER.verbose(f"Removing BIDS-invalid b0-file: {bfile} -> {jsonfile}")
metadata[ext[1:]] = bdata.values.tolist()
Expand Down

0 comments on commit ab3856d

Please sign in to comment.