Skip to content

Commit

Permalink
Merge pull request #330 from bids-standard/version-bump
Browse files Browse the repository at this point in the history
Version bump --> 0.7.0
  • Loading branch information
tyarkoni authored Jan 10, 2019
2 parents d84f52d + e5a9c66 commit 10292a0
Show file tree
Hide file tree
Showing 4 changed files with 784 additions and 715 deletions.
24 changes: 20 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Version 0.7.0 (September, 2018)
## Version 0.7.0 (January 10, 2019)
This is a major, API-breaking release. It introduces a large number of new features, bug fixes, and improvements.

API-BREAKING CHANGES:
Expand All @@ -14,20 +14,36 @@ API-BREAKING CHANGES:
* The BIDS validator is now enabled by default at layout initialization (i.e., `validate=True`)
* The `exclude` initialization argument has been removed.
* `BIDSLayout.parse_entities` utility has been removed (use the more flexible `parse_file_entities`).
* Calls to `.get()` now return `BIDSFile` objects, rather than namedtuples, by default (#281). The `BIDSFile` API has been tweaked to ensure backwards incompatibility in nearly all cases.
* Naming conventions throughout the codebase have been updated to ensure consistency with the BIDS specs. This is most salient in the `analysis` module, where snake_case has been replaced with CamelCase throughout.

NEW FEATURES:
* File metadata is now searchable (use `BIDSLayout.search_metadata()`)
* File metadata (i.e., in JSON sidecars) is now searchable by default, and behaves just like native BIDS entities (e.g., metadata keys can be passed as arguments to `.get()` calls)
* A new BIDSFile wrapper provides easy access to `.metadata` and `.image`
* HRF convolution is now supported via bundling of nistats' hemodynamic_models module; convolution is handled via the `convolve_HRF` transformation.
* Named config paths that customize how projects are processed can be added at run-time (#313)
* Preliminary support for BIDS-Derivatives RC1 (mainly core keywords)

MINOR IMPROVEMENTS AND BUG FIXES:
* Specifying 'derivatives' in a paths specification now automatically includes 'bids' (#246)
* Specifying 'derivatives' in a path specification now automatically includes 'bids' (#246)
* Zenodo DOIs are now minted with new releases (#308)
* Variable loading via load_variables can now be done incrementally
* Expanded and improved path-building via `layout.build_path()`
* `get_collections` no longer breaks when `merge=True` and the list is empty (#202)
* Layout initialization no longer fails when `validate=True` (#222)
* The auto_contrasts field in the modeling tools now complies with the BIDS-Model spec (#234)
* Fix sum transformation
* Printing a `BIDSFile` now provides more useful information, including path (#298)
* Resample design matrix to 1/TR by default (#309)
* Fix the Sum transformation
* Ensure that resampling works properly when a sampling rate is passed to `get_design_matrix` (#297)
* Propagate derivative entities into top-level dynamic getters (#306)
* Deprecated `get_header` call in nibabel removed (#300)
* Fix bug in entity indexing for `BIDSVariableCollection` (#319)
* Exclude modules with heavy dependencies from root namespace for performance reasons (#321)
* Fix bug that caused in-place updating of input selectors in `Analysis` objects (#323)
* Add a DropNA transformation (#325)
* Add a `get_tr()` method to `BIDSLayout` (#327)
* Add entity hints when calling `get()` with a `target` argument (#328)
* Improved test coverage

## Version 0.6.5 (August 21, 2018)
Expand Down
4 changes: 2 additions & 2 deletions bids/layout/config/bids.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
{
"name": "subject",
"pattern": "[/\\\\]sub-([a-zA-Z0-9]+)",
"directory": "{{root}}/{subject}"
"directory": "{{root}}{subject}"
},
{
"name": "session",
"pattern": "[_/\\\\]ses-([a-zA-Z0-9]+)",
"mandatory": false,
"directory": "{{root}}/{subject}/{session}",
"directory": "{{root}}{subject}{session}",
"missing_value": "ses-1"
},
{
Expand Down
10 changes: 8 additions & 2 deletions bids/layout/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@ def get(self, return_type='object', target=None, extensions=None,
(see return_type for details).
"""

# Warn users still expecting 0.6 behavior
if 'type' in kwargs:
raise ValueError("As of pybids 0.7.0, the 'type' argument has been"
" replaced with 'suffix'.")

if derivatives is True:
derivatives = list(self.derivatives.keys())
elif derivatives:
Expand Down Expand Up @@ -414,8 +419,9 @@ def get(self, return_type='object', target=None, extensions=None,
# Get entity-based search results using the superclass's get()
result = []
result = super(
BIDSLayout, self).get(return_type, target, extensions, None,
regex_search, **ent_kwargs)
BIDSLayout, self).get(return_type, target=target,
extensions=extensions, domains=None,
regex_search=regex_search, **ent_kwargs)

# Search the metadata if needed
if return_type not in {'dir', 'id'}:
Expand Down
Loading

0 comments on commit 10292a0

Please sign in to comment.