Skip to content

Commit 772d6f5

Browse files
committed
Skip sorting all report files, as they have a very limited DICOM header and bump version to 4.5.2.dev2
1 parent 9d1acd1 commit 772d6f5

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

bidscoin/heuristics/bidsmap_bids2bids.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Options:
2020
# General BIDScoin and plugin options
2121
# --------------------------------------------------------------------------------
2222
bidscoin:
23-
version: 4.5.2.dev1 # BIDScoin version (should correspond with the version in pyproject.toml)
23+
version: 4.5.2.dev2 # BIDScoin version (should correspond with the version in pyproject.toml)
2424
subprefix: sub- # The subject prefix of the source data
2525
sesprefix: ses- # The session prefix of the source data
2626
bidsignore: [extra_data/, sub-*_ct.*] # List of entries that are added to the .bidsignore file (for more info, see BIDS specifications), e.g. [extra_data/, pet/, myfile.txt, yourfile.csv]

bidscoin/heuristics/bidsmap_dccn.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Options:
2121
# General BIDScoin and plugin options
2222
# -----------------------------------
2323
bidscoin:
24-
version: 4.5.2.dev1 # BIDScoin version (should correspond with the version in pyproject.toml)
24+
version: 4.5.2.dev2 # BIDScoin version (should correspond with the version in pyproject.toml)
2525
subprefix: sub- # The subject prefix of the source data
2626
sesprefix: ses- # The session prefix of the source data
2727
bidsignore: [extra_data/, sub-*_ct.*] # List of entries that are added to the .bidsignore file (for more info, see BIDS specifications), e.g. [extra_data/, pet/, myfile.txt, yourfile.csv]
@@ -1016,6 +1016,12 @@ DICOM:
10161016
<<: *leaveout_attributes_dicom
10171017
ProtocolName: (?i).*(Scout|localizer|t2_haste_sag_ipat2).*
10181018
bids: *leaveout_bids_dicom
1019+
- attributes:
1020+
<<: *leaveout_attributes_dicom
1021+
Modality: SR
1022+
bids:
1023+
<<: *leaveout_bids_dicom
1024+
rec: REPORT
10191025
- attributes:
10201026
<<: *leaveout_attributes_dicom
10211027
ImageType: .*'CSA REPORT'.*

bidscoin/heuristics/bidsmap_sst.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Options:
2020
# General BIDScoin and plugin options
2121
# -----------------------------------
2222
bidscoin:
23-
version: 4.5.2.dev1 # BIDScoin version (should correspond with the version in pyproject.toml)
23+
version: 4.5.2.dev2 # BIDScoin version (should correspond with the version in pyproject.toml)
2424
subprefix: sub- # The subject prefix of the source data
2525
sesprefix: ses- # The session prefix of the source data
2626
bidsignore: [extra_data/, sub-*_ct.*] # List of entries that are added to the .bidsignore file (for more info, see BIDS specifications), e.g. [extra_data/, pet/, myfile.txt, yourfile.csv]
@@ -1015,6 +1015,12 @@ DICOM:
10151015
<<: *leaveout_attributes_dicom
10161016
ProtocolName: (?i).*(Scout|localizer|t2_haste_sag_ipat2).*
10171017
bids: *leaveout_bids_dicom
1018+
- attributes:
1019+
<<: *leaveout_attributes_dicom
1020+
Modality: SR
1021+
bids:
1022+
<<: *leaveout_bids_dicom
1023+
rec: REPORT
10181024
- attributes:
10191025
<<: *leaveout_attributes_dicom
10201026
ImageType: .*'CSA REPORT'.*

bidscoin/utilities/dicomsort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def sortsession(sessionfolder: Path, dicomfiles: list[Path], folderscheme: str,
106106
continue
107107

108108
# Skip radiology reports, as they have a very limited DICOM header
109-
if get_dicomfield('CodeMeaning', dicomfile) == 'Radiology Report':
110-
LOGGER.info(f"Skipping radiology report '{dicomfile}'")
109+
if get_dicomfield('Modality', dicomfile) == 'SR':
110+
LOGGER.info(f"Skipping report file '{dicomfile}'")
111111
continue
112112

113113
# Create a new subfolder if needed

docs/CHANGELOG.md

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

33
*All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)*
44

5-
## [4.5.2.dev1]
5+
## [4.5.2.dev2]
66

77
## [4.5.0] - 2025-02-05
88

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = 'setuptools.build_meta'
77
[project]
88
name = 'bidscoin'
99
description = 'Converts and organises raw MRI data-sets according to the Brain Imaging Data Structure (BIDS)'
10-
version = '4.5.2.dev1'
10+
version = '4.5.2.dev2'
1111
readme = 'README.rst'
1212
requires-python = '>= 3.9'
1313
license = {file = 'LICENSE.txt'}

tests/test_data/bidsmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $schema: schema.json
1919

2020
Options: # =============================== General options and plugins =====================================
2121
bidscoin:
22-
version: 4.5.2.dev1 # BIDScoin version (should correspond with the version in pyproject.toml)
22+
version: 4.5.2.dev2 # BIDScoin version (should correspond with the version in pyproject.toml)
2323
bidsignore: extra_data/ # Semicolon-separated list of entries that are added to the .bidsignore file (for more info, see BIDS specifications), e.g. extra_data/;pet/;myfile.txt;yourfile.csv
2424
subprefix: sub- # The subject prefix of the source data
2525
sesprefix: ses- # The session prefix of the source data

0 commit comments

Comments
 (0)