Skip to content

Commit abac818

Browse files
committed
Merge tag 'v0.6.0' into debian
[0.6.0] - 2019-12-16 This is largely a bug fix. Metadata and order of `_key-value` fields in BIDS could change from the result of converting using previous versions, thus minor version boost. 14 people contributed to this release -- thanks [everyone](https://github.com/nipy/heudiconv/graphs/contributors)! Enhancement - Use [etelemetry](https://pypi.org/project/etelemetry) to inform about most recent available version of heudiconv. Please set `NO_ET` environment variable if you want to disable it ([#369][]) - BIDS: - `--bids` flag became an option. It can (optionally) accept `notop` value to avoid creation of top level files (`CHANGES`, `dataset_description.json`, etc) as a workaround during parallel execution to avoid race conditions etc. ([#344][]) - Generate basic `.json` files with descriptions of the fields for `participants.tsv` and `_scans.tsv` files ([#376][]) - Use `filelock` while writing top level files. Use `HEUDICONV_FILELOCK_TIMEOUT` environment to change the default timeout value ([#348][]) - `_PDT2` was added as a suffix for multi-echo (really "multi-modal") sequences ([#345][]) - Calls to `dcm2niix` would include full output path to make it easier to discern in the logs what file it is working on ([#351][]) - With recent [datalad]() (>= 0.10), created DataLad dataset will use `--fake-dates` functionality of DataLad to not leak data conversion dates, which might be close to actual data acquisition/patient visit ([#352][]) - Support multi-echo EPI `_phase` data ([#373][] fixes [#368][]) - Log location of a bad .json file to ease troubleshooting ([#379][]) - Add basic pypi classifiers for the package ([#380][]) Fixed - Sorting `_scans.tsv` files lacking valid dates field should not cause a crash ([#337][]) - Multi-echo files detection based number of echos ([#339][]) - BIDS - Use `EchoTimes` from the associated multi-echo files if `EchoNumber` tag is missing ([#366][] fixes [#347][]) - Tolerate empty ContentTime and/or ContentDate in DICOMs ([#372][]) and place "n/a" if value is missing ([#390][]) - Do not crash and store original .json file is "JSON pretification" fails ([#342][]) - ReproIn heuristic - tolerate WIP prefix on Philips scanners ([#343][]) - allow for use of `(...)` instead of `{...}` since `{}` are not allowed ([#343][]) - Support pipolar fieldmaps by providing them with `_epi` not `_magnitude`. "Loose" BIDS `_key-value` pairs might come now after `_dir-` even if they came first before ([#358][] fixes [#357][]) - All heuristics saved under `.heudiconv/` under `heuristic.py` name, to avoid discrepancy during reconversion ([#354][] fixes [#353][]) - Do not crash (with TypeError) while trying to sort absent file list ([#360][]) - heudiconv requires nipype >= 1.0.0 ([#364][]) and blacklists `1.2.[12]` ([#375][]) * tag 'v0.6.0': Boost perspective release date in changelog to today ENH(TST): Fix version to older pytest to ease backward compatibility testing RF: use tmpdir not tmp_path fixture FIX: minor typo in CHANGELOG.md
2 parents ef40fd4 + ea4bb74 commit abac818

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented (for humans) in this file
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [0.6.0] - 2019-12-05
7+
## [0.6.0] - 2019-12-16
88

99
This is largely a bug fix. Metadata and order of `_key-value` fields in BIDS
1010
could change from the result of converting using previous versions, thus minor
@@ -50,7 +50,7 @@ version boost.
5050
- Do not crash and store original .json file is "JSON pretification" fails
5151
([#342][])
5252
- ReproIn heuristic
53-
- tollerate WIP prefix on Philips scanners ([#343][])
53+
- tolerate WIP prefix on Philips scanners ([#343][])
5454
- allow for use of `(...)` instead of `{...}` since `{}` are not allowed
5555
([#343][])
5656
- Support pipolar fieldmaps by providing them with `_epi` not `_magnitude`.

dev-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-r requirements.txt
2-
pytest
2+
# Fix version to older pytest to ease backward compatibility testing
3+
pytest==3.6.4
34
tinydb
45
inotify

heudiconv/tests/test_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ def test_json_dumps_pretty():
6767
assert pretty({'WipMemBlock': tstr}) == '{\n "WipMemBlock": "%s"\n}' % tstr
6868

6969

70-
def test_load_json(tmp_path, caplog):
70+
def test_load_json(tmpdir, caplog):
7171
# test invalid json
7272
ifname = 'invalid.json'
73-
invalid_json_file = str(tmp_path / ifname)
74-
create_tree(str(tmp_path), {ifname: u"I'm Jason Bourne"})
73+
invalid_json_file = str(tmpdir / ifname)
74+
create_tree(str(tmpdir), {ifname: u"I'm Jason Bourne"})
7575

7676
with pytest.raises(JSONDecodeError):
7777
load_json(str(invalid_json_file))
@@ -81,7 +81,7 @@ def test_load_json(tmp_path, caplog):
8181
# test valid json
8282
vcontent = {"secret": "spy"}
8383
vfname = "valid.json"
84-
valid_json_file = str(tmp_path / vfname)
84+
valid_json_file = str(tmpdir / vfname)
8585
save_json(valid_json_file, vcontent)
8686

8787
assert load_json(valid_json_file) == vcontent

0 commit comments

Comments
 (0)