Skip to content

Commit

Permalink
fix flake8 complaint
Browse files Browse the repository at this point in the history
Signed-off-by: M Q <mingmelvinq@nvidia.com>
  • Loading branch information
MMelQin committed Apr 24, 2024
1 parent 6f48bf3 commit ec3094c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/deploy/operators/dicom_data_loader_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _load_data(self, files: List[str]):
study_instance_uid = sop_instance[0x0020, 0x000D].value.name # name is the UID as str

# First need to eliminate the SOP instances whose SOP Class is to be ignored.
if not "SOPClassUID" in sop_instance:
if "SOPClassUID" not in sop_instance:
self._logger.warn("Instance ignored due to missing SOP Class UID tag.")
continue
if sop_instance["SOPClassUID"].value in DICOMDataLoaderOperator.SOP_CLASSES_TO_IGNORE:
Expand Down

0 comments on commit ec3094c

Please sign in to comment.