Releases: d2b-dev/d2b-asl
Releases · d2b-dev/d2b-asl
2.0.1
Release notes
Patch ASL Context for 3D ASL images.
Changes
- [FIX]: Patch the number of volumes expected in the ASL Context (
*_aslcontext.tsv
) file for 3D ASL NIfTIs (*_asl.nii[.gz]
). - [FIX]: Do not create an ASL Context file for separate m0 scans.
- [MNT]: Fix
poetry install
dependency issue - [MNT]: Update poetry and pin version 1.8.2 in workflows
- [MNT]: Sync pre-commit dev dependencies with poetry versions
- [CI]: Bump actions/checkout from 2 to 4
- [CI]: Bump actions/setup-python from 2 to 5
- [CI]: Use snok/install-poetry to install poetry in the lint workflow
- [CI]: Fix the
Install dependencies
step in the lint workflow - [CI]: Bump actions/setup-node from 1 to 4
- [CI]: Bump node version from 12 to 20
- [CI]: Fix type error
- [CI]: Bump github/super-linter to slim v6
- [CI]: Fetch full git history for superlinter
- [CI]: Add GHA badges
2.0.0
- Add
nibabel
as a dependency - Add
"discard"
as an allowable item value in theaslContext
array ind2b-config.json
. - Rename class
AslContext
->Aslcontext
- Instantiating
Aslcontext
now accepts a list of strings and an optional file path, and no longer accepts anAcquisition
object (for this see theAslcontext.from_acquisition()
classmethod) - Asl acquisitions are now modified if non-BIDS-compliant labels are found. Specifically, if
"discard"
is a label, then the associated volume is removed from the acquisition. - Introduce custom exceptions
MissingAslcontextError
,InvalidAslcontextLabelError
, andAslContextConfigurationError
- Move aslcontext validation to
generate_context_file()
function. - Add check to make sure that the number of labels == the number of volumes in the matching acquisition. (An
AslContextConfigurationError
is raised if there is a mismatch)
1.0.2
Optional *_aslcontext.json files
- Make the creation of *_aslcontext.json files optional.
- This is facilitated by the addition of two (mutually exclusive) flags to the
d2b run
command (specifically,--[no-]include-aslcontext-json
). The "no" flag is taken to be the default if neither is specified, that is, no *_aslcontext.json files will be produced, regardless of whether of not asl data is found in the dataset. - NOTE: These JSON files seem to cause errors in the bids-validator (v1.8.0), however, these files are listed in the spec, is this a bug in the validator?
- This is facilitated by the addition of two (mutually exclusive) flags to the