D2b

Latest version: v1.4.2

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

1.2.1

- Remove testing packages from dependencies

1.2.0

This release contains updates and bug fixes

Updates

- Added test suite. Now run along with the rest of the CI.
- Updated documentation.
- Section on using JSON schema definition file.
- Badges
- Extended JSON schema. The list of properties in `criteria` objects that are suggested to the user has been expanded to include more keys.
- Refactored `IntendedFor` resolution: the `IntendedForResolver` class.
- Removed example data from the `participants.tsv` file produced by `d2b scaffold`

Fixes

- Fix unexpected behavior in the `Description` class. `description.data` now only contains _extra_ fields. The fields that are unpacked into the various attributes are now popped (removed) from (a copy of) the provided dictionary.
Before:
python
d = Description.from_dict(0, {'dataType': 'func', 'modalityLabel': 'bold'})
assert d.data_type == 'func'
assert d.modality_label == 'bold'
assert d.data == {'dataType': 'func', 'modalityLabel': 'bold'}


This release:
python
d = Description.from_dict(0, {'dataType': 'func', 'modalityLabel': 'bold'})
assert d.data_type == 'func'
assert d.modality_label == 'bold'
assert d.data == {} NEW

- Update `d2b.defaults.run_tpl` to be BIDS-compliant. Before, runs were zero-padded: `run-01`; now runs are **_not_** zero-padded: `run-1`.
- Fix bug in `IntendedFor` resolution. If a non-array `IntendedFor` field was specified in a description in the `d2b-config.json`, but there were multiple runs which matched the target acquisition, the resulting `IntendedFor` field would be a string pointing at the first run (as opposed to an array of strings pointing to all the runs).

1.1.5

- Fix bug in `IntendedFor` resolution.
- Update JSON Schema.

1.1.4

Bug fix

- Fixed bugs in `FilenameEntities` class. Specifically, omitting `customLabels` in any description would result in a parsing exception.

1.1.3

- Added property `Acquisition.dst_root_no_modality`
- Added property `Description.suffix_no_modality`
- Minor refactor

1.1.2

- Add support for `filename` property in `criteria` objects ([for exmaple](https://github.com/d2b-dev/d2b/blob/488c302e7bfd0ed70a3153fff05a0a2d602ed4c9/example/d2b-config.json#L13)). This field is treated the same as/equivalent to `SidecarFilename`, the goal is to make the criteria objects more generic
- Add more comprehensive [`d2b-config.json`](https://github.com/d2b-dev/d2b/blob/488c302e7bfd0ed70a3153fff05a0a2d602ed4c9/example/d2b-config.json) example.
- Fix bug related to how `Description().custom_labels` is computed. This fix tries to order the `custom_labels` in a BIDS-compliant way. This is done by keeping a record/ordered list of known BIDS entity fields, known fields are inserted first (in order), then unknown fields are inserted (in the original order they were provided)

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.