You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I am encountering a TypeError when trying to convert DICOM files to BIDS format using dcm2bids. The error message indicates that Acquisition.init() is missing 2 required positional arguments: 'datatype' and 'suffix'.
Steps to Reproduce:
Run dcm2niix to convert DICOM to NIfTI:
dcm2niix -z y -f %p_%s -o /home/zzc/gwx/SRS00004 /home/zzc/gwx/SRS00004
This step completes successfully.
Run dcm2bids:
dcm2bids -d /home/zzc/gwx/SRS00004 -p sub-01 -c /path/to/config.json --force_dcm2bids
This step fails with the following error:
TypeError: Acquisition.init() missing 2 required positional arguments: 'datatype' and 'suffix'
Expected Behavior:
I expect dcm2bids to successfully convert the DICOM files to BIDS format.
Actual Behavior:
The program crashes with a TypeError.
Environment:
OS: Linux-6.2.0-34-generic-x86_64-with-glibc2.35
Python version: 3.12.0
dcm2bids version: 3.1.1
dcm2niix version: v1.0.20230411
Additional Information:
I have tried simplifying the config.json to only include the SeriesDescription field, but the issue persists.
Here is my simplified config.json:
{
"descriptions": [
{
"dataType": "anat",
"modalityLabel": "T1w",
"criteria": {
"SeriesDescription": "OAx 3D T1BRAVO"
}
}
]
}
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
We also highly suggest people to post their issues on https://neurostars.org/ using the dcm2bids tag.
There are even more people able to help you on this forum than here on github.
If you have any questions, please post them there.
Description:
I am encountering a TypeError when trying to convert DICOM files to BIDS format using dcm2bids. The error message indicates that Acquisition.init() is missing 2 required positional arguments: 'datatype' and 'suffix'.
Steps to Reproduce:
Run dcm2niix to convert DICOM to NIfTI:
dcm2niix -z y -f %p_%s -o /home/zzc/gwx/SRS00004 /home/zzc/gwx/SRS00004
This step completes successfully.
Run dcm2bids:
dcm2bids -d /home/zzc/gwx/SRS00004 -p sub-01 -c /path/to/config.json --force_dcm2bids
This step fails with the following error:
TypeError: Acquisition.init() missing 2 required positional arguments: 'datatype' and 'suffix'
Expected Behavior:
I expect dcm2bids to successfully convert the DICOM files to BIDS format.
Actual Behavior:
The program crashes with a TypeError.
Environment:
OS: Linux-6.2.0-34-generic-x86_64-with-glibc2.35
Python version: 3.12.0
dcm2bids version: 3.1.1
dcm2niix version: v1.0.20230411
Additional Information:
I have tried simplifying the config.json to only include the SeriesDescription field, but the issue persists.
Here is my simplified config.json:
{
"descriptions": [
{
"dataType": "anat",
"modalityLabel": "T1w",
"criteria": {
"SeriesDescription": "OAx 3D T1BRAVO"
}
}
]
}
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: