Skip to content

Commit 4175f06

Browse files
committed
RF: dbic_bids -> reproin
1 parent a8ccffd commit 4175f06

File tree

8 files changed

+13
-34
lines changed

8 files changed

+13
-34
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ First release after major refactor
1414
- `Dockerfile` is generated by [neurodocker](https://github.com/kaczmarj/neurodocker)
1515
- Logging verbosity reduced
1616
- Increased leniency with missing DICOM fields
17+
- dbic_bids heuristic renamed into reproin
1718
### Removed
1819
### Deprecated
1920
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ provided to address various use-cases
2525

2626
- the [cmrr_heuristic](heuristics/cmrr_heuristic.py) provides an
2727
example for a conversion to [BIDS]
28-
- the [dbic_bids](heuristics/dbic_bids.py) could be used to establish
28+
- the [reproin](heuristics/reproin.py) could be used to establish
2929
a complete imaging center wide automation to convert all acquired
3030
data to [BIDS] following a simple naming
3131
[convention](https://goo.gl/o0YASC) for studies and sequences

heudiconv/heuristics/dbic_bids_validator.cfg

Lines changed: 0 additions & 22 deletions
This file was deleted.
File renamed without changes.

heudiconv/heuristics/test_dbic_bids.py renamed to heudiconv/heuristics/test_reproin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
2-
# Tests for dbic_bids.py
2+
# Tests for reproin.py
33
#
44
from collections import OrderedDict
5-
from dbic_bids import get_dups_marked
5+
from reproin import get_dups_marked
66

77
def test_get_dups_marked():
88
no_dups = {('some',): [1]}

tests/test_heuristics.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ def test_smoke_converall(tmpdir):
3131
)
3232

3333

34-
@pytest.mark.parametrize('heuristic', ['dbic_bids', 'convertall'])
34+
@pytest.mark.parametrize('heuristic', ['reproin', 'convertall'])
3535
@pytest.mark.parametrize(
3636
'invocation', [
3737
"--files %s" % TESTS_DATA_PATH, # our new way with automated groupping
3838
"-d %s/{subject}/* -s 01-fmap_acq-3mm" % TESTS_DATA_PATH # "old" way specifying subject
3939
# should produce the same results
4040
])
4141
@pytest.mark.skipif(Dataset is None, reason="no datalad")
42-
def test_dbic_bids_largely_smoke(tmpdir, heuristic, invocation):
43-
is_bids = True if heuristic == 'dbic_bids' else False
42+
def test_reproin_largely_smoke(tmpdir, heuristic, invocation):
43+
is_bids = True if heuristic == 'reproin' else False
4444
arg = "--random-seed 1 -f %s -c dcm2niix -o %s" \
4545
% (heuristic, tmpdir)
4646
if is_bids:
@@ -57,7 +57,7 @@ def test_dbic_bids_largely_smoke(tmpdir, heuristic, invocation):
5757
with pytest.raises(ValueError):
5858
runner(args + ['--subjects', 'sub1', 'sub2'])
5959

60-
if heuristic != 'dbic_bids':
60+
if heuristic != 'reproin':
6161
# none other heuristic has mighty infotoids atm
6262
with pytest.raises(NotImplementedError):
6363
runner(args)
@@ -93,8 +93,8 @@ def test_dbic_bids_largely_smoke(tmpdir, heuristic, invocation):
9393
'invocation', [
9494
"--files %s" % TESTS_DATA_PATH, # our new way with automated groupping
9595
])
96-
def test_scans_keys_dbic_bids(tmpdir, invocation):
97-
args = "-f dbic_bids -c dcm2niix -o %s -b " % (tmpdir)
96+
def test_scans_keys_reproin(tmpdir, invocation):
97+
args = "-f reproin -c dcm2niix -o %s -b " % (tmpdir)
9898
args += invocation
9999
runner(args.split())
100100
# for now check it exists
@@ -116,7 +116,7 @@ def test_scans_keys_dbic_bids(tmpdir, invocation):
116116
@patch('sys.stdout', new_callable=StringIO)
117117
def test_ls(stdout):
118118
args = (
119-
"-f dbic_bids --command ls --files %s"
119+
"-f reproin --command ls --files %s"
120120
% (TESTS_DATA_PATH)
121121
).split(' ')
122122
runner(args)

tests/test_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
@pytest.mark.parametrize('subject', ['sub-sid000143'])
20-
@pytest.mark.parametrize('heuristic', ['dbic_bids.py'])
20+
@pytest.mark.parametrize('heuristic', ['reproin.py'])
2121
@pytest.mark.skipif(not have_datalad, reason="no datalad")
2222
def test_conversion(tmpdir, subject, heuristic):
2323
tmpdir.chdir()

utils/test-compare-two-versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function run() {
3030

3131
# just do full conversion
3232
echo "Running $whichheudiconv with log in $out.log"
33-
$RUN heudiconv --random-seed 1 -f $heudiconvdir/heuristics/dbic_bids.py -c dcm2niix -o $out --datalad --bids "$@" >| $out.log 2>&1
33+
$RUN heudiconv --random-seed 1 -f $heudiconvdir/heuristics/reproin.py -c dcm2niix -o $out --datalad --bids "$@" >| $out.log 2>&1
3434
}
3535

3636
run heudiconv rolando "$@"

0 commit comments

Comments
 (0)