Skip to content

Conversation

@MMelQin
Copy link
Collaborator

@MMelQin MMelQin commented Feb 28, 2022

It has been found that this loader is overly restrictive in that it expects a folder containing only valid DCIOM part 10 files.

So, this PR is to

  • relax the limitation by skipping non-DICOM files
  • maintain input processing validation by giving the user/application the control and option to raise error if no DICOM studies are loaded. This will stop the processing at this data loading stage if downstream processing needs valid loaded data objects.

Signed-off-by: mmelqin mingmelvinq@nvidia.com

…ttings

Signed-off-by: mmelqin <mingmelvinq@nvidia.com>
@MMelQin MMelQin merged commit 8ec336f into main Mar 1, 2022
jlvahldiek pushed a commit to jlvahldiek/monai-deploy-app-sdk that referenced this pull request Mar 31, 2022
…ttings (Project-MONAI#273)

Signed-off-by: mmelqin <mingmelvinq@nvidia.com>
Signed-off-by: Janis <janis@vahldiek.info>
MMelQin added a commit that referenced this pull request Apr 1, 2022
* Relaxed the restriction on non-DCM files, and raise error based on settings (#273)

Signed-off-by: mmelqin <mingmelvinq@nvidia.com>
Signed-off-by: Janis <janis@vahldiek.info>

* fix pixel spacing

fix pixel spacing if [0x0028, 0x0030] is not available

Signed-off-by: Janis <janis@vahldiek.info>

* fix pixel spacing

fix pixel spacing if [0x0028, 0x0030] is not available

Signed-off-by: Janis <janis@vahldiek.info>

* Revert "fix pixel spacing"

This reverts commit a4073db.

Signed-off-by: Janis <janis@vahldiek.info>

* add default value

add default value of "None" to meta_dict["original_affine"]

Signed-off-by: Janis Vahldiek <janis@vahldiek.info>
Signed-off-by: Janis <janis@vahldiek.info>

* add KeyError

Signed-off-by: Janis Vahldiek <janis@vahldiek.info>
Signed-off-by: Janis <janis@vahldiek.info>

* make black happy

Signed-off-by: Janis <janis@vahldiek.info>

* Mqin/fix doc typos (#274)

* Fixed typo in inline comments.

Signed-off-by: mmelqin <mingmelvinq@nvidia.com>

* Checked and fixed typo for all Operators

Signed-off-by: mmelqin <mingmelvinq@nvidia.com>

* Added notes in the Jupyter notebooks

Signed-off-by: mmelqin <mingmelvinq@nvidia.com>
Signed-off-by: Janis <janis@vahldiek.info>

* Revert "make black happy"

This reverts commit 62996dc.

Signed-off-by: Janis <janis@vahldiek.info>

* make black happy

Signed-off-by: Janis <janis@vahldiek.info>

* fix pixel spacing

fix pixel spacing if [0x0028, 0x0030] is not available

Signed-off-by: Janis <janis@vahldiek.info>

* fix pixel spacing

fix pixel spacing if [0x0028, 0x0030] is not available

Signed-off-by: Janis <janis@vahldiek.info>

* Revert "fix pixel spacing"

This reverts commit a4073db.

Signed-off-by: Janis <janis@vahldiek.info>

* add KeyError

Signed-off-by: Janis Vahldiek <janis@vahldiek.info>

* Revert "make black happy"

This reverts commit 62996dc.

Signed-off-by: Janis <janis@vahldiek.info>

* make black happy

Signed-off-by: Janis <janis@vahldiek.info>

Co-authored-by: Ming M Qin <38891913+MMelQin@users.noreply.github.com>
@MMelQin MMelQin mentioned this pull request Apr 21, 2022
@MMelQin MMelQin deleted the mingq/DICOMDataLoaderOperator_to_ignore_nonDCM_files branch February 3, 2025 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] DICOMDataLoaderOperator crashes when reading non-DICOM files

3 participants