Skip to content

Commit 7f35085

Browse files
committed
ENH: make utils/test-compare-two-versions.sh usable as a simple prefix to heudiconv call
now that even the released version has --files and we could compare for any heuristic
1 parent 13404c8 commit 7f35085

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

utils/test-compare-two-versions.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
PS1=+
88
set -eu
99

10-
outdir=${OUTDIR:=compare-versions/$(basename $1)}
10+
outdir=${OUTDIR:=compare-versions}
1111

1212
RUN=echo
1313
RUN=
@@ -33,14 +33,15 @@ function run() {
3333
$RUN heudiconv --random-seed 1 -c dcm2niix -o $out --datalad --bids "$@" >| $out.log 2>&1
3434
}
3535

36-
run heudiconv rolando -f heudiconv/heuristics/dbic_bids.py "$@"
37-
run heudiconv-master master -f reproin --files "$@"
36+
other=other
37+
run heudiconv $other "$@"
38+
run heudiconv-master master "$@"
3839

3940
cd $outdir
4041
#git remote add rolando "$outdir/rolando"
4142
#git fetch rolando
4243
# git diff --stat rolando/master..
43-
if diff -Naur --exclude=.git --ignore-matching-lines='^\s*id\s*=.*' rolando master >| diff.patch; then
44+
if diff -Naur --exclude=.git --ignore-matching-lines='^\s*id\s*=.*' $other master >| diff.patch; then
4445
echo "Results are identical"
4546
else
4647
echo "Results differ: $PWD/diff.patch"

0 commit comments

Comments
 (0)