Skip to content

cubids purge updates unrelated files #474

@singlesp

Description

@singlesp

Summary

while running cubids purge to delete one bold scan, several unrelated fmap jsons were updated.

Additional details

  • CuBIDS version: v1.2.1.dev5+g0be1b9a26
  • Datalad version: 1.1.5

What were you trying to do?

delete a bold scan w/ cubids purge

What did you expect to happen?

only that file and its side car would be deleted and the reference would be purged from the associated fmap sidecar intendedfors

What actually happened?

the above happened as expected. in addition several unrelated json sidecars were updated - it looks like the only change was probably an indentation.

Reproducing the bug

cubids purge bids_datalad/ ~/code/curation/04_cubids_curation/remove_fracback40vol.txt --use-datalad

contents of the txt file: sub-130121/ses-1/func/sub-130121_ses-1_task-fracback_acq-singlebandVARIANTNumVolumes40_bold.nii.gz

Files that were changed by the commit:

git show --name-only 19fe628a
commit 19fe628af6209e55d181c933003f6d7dfa36b10c
Author: singlesp <sps253@cornell.edu>
Date:   Tue Oct 21 12:27:36 2025 -0400

    Purged IntendedFor references to files requested for removal

sub-117226/ses-1/fmap/sub-117226_ses-1_acq-VARIANTMultibandAccelerationFactornan_magnitude2.json
sub-117226/ses-1/fmap/sub-117226_ses-1_acq-VARIANTMultibandAccelerationFactornan_phasediff.json
sub-117226/ses-1/fmap/sub-117226_ses-1_magnitude1.json
sub-121407/ses-1/fmap/sub-121407_ses-1_acq-VARIANTMultibandAccelerationFactornan_magnitude2.json
sub-121407/ses-1/fmap/sub-121407_ses-1_acq-VARIANTMultibandAccelerationFactornan_phasediff.json
sub-121407/ses-1/fmap/sub-121407_ses-1_magnitude1.json
sub-130121/ses-1/fmap/sub-130121_ses-1_acq-VARIANTMultibandAccelerationFactornan_magnitude2.json
sub-130121/ses-1/fmap/sub-130121_ses-1_acq-VARIANTMultibandAccelerationFactornan_phasediff.json
sub-130121/ses-1/fmap/sub-130121_ses-1_magnitude1.json
sub-130896/ses-1/fmap/sub-130896_ses-1_acq-VARIANTMultibandAccelerationFactor2_magnitude1.json
sub-130896/ses-1/fmap/sub-130896_ses-1_acq-VARIANTMultibandAccelerationFactornan_magnitude2.json
sub-130896/ses-1/fmap/sub-130896_ses-1_acq-VARIANTMultibandAccelerationFactornan_phasediff.json
sub-85083/ses-1/fmap/sub-85083_ses-1_acq-VARIANTMultibandAccelerationFactor2_magnitude1.json
sub-85083/ses-1/fmap/sub-85083_ses-1_acq-VARIANTMultibandAccelerationFactornan_magnitude2.json
sub-85083/ses-1/fmap/sub-85083_ses-1_acq-VARIANTMultibandAccelerationFactornan_phasediff.json
sub-86350/ses-1/fmap/sub-86350_ses-1_magnitude1.json
sub-86350/ses-1/fmap/sub-86350_ses-1_magnitude2.json
sub-86350/ses-1/fmap/sub-86350_ses-1_phasediff.json
sub-86924/ses-1/fmap/sub-86924_ses-1_magnitude1.json
sub-86924/ses-1/fmap/sub-86924_ses-1_magnitude2.json
sub-86924/ses-1/fmap/sub-86924_ses-1_phasediff.json
sub-90077/ses-1/fmap/sub-90077_ses-1_acq-VARIANTMultibandAccelerationFactor2_magnitude1.json
sub-90077/ses-1/fmap/sub-90077_ses-1_magnitude2.json
sub-90077/ses-1/fmap/sub-90077_ses-1_phasediff.json

-->

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions