Skip to content

Commit 4ccbbd9

Browse files
committed
fix: add hash to copied metadata derivatives as well
1 parent e228bb3 commit 4ccbbd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabies/utils/derivatives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,6 @@ def copy_derivatives(
168168
outname = '_'.join(ents)
169169

170170
shutil.copy2(deriv, outpath / outname)
171-
json = deriv.parent / (deriv.name.split('.')[0] + '.json')
171+
json = deriv.parent / (outname.split('.')[0] + '.json')
172172
if json.exists():
173173
shutil.copy2(json, outpath / json.name)

0 commit comments

Comments
 (0)