Skip to content

Commit 622ed66

Browse files
committed
Fix linting complaints
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent 490b2c6 commit 622ed66

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

monai/deploy/operators/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
# from holoscan.operators import *
3838
from holoscan.operators import PingRxOp, PingTxOp, VideoStreamRecorderOp, VideoStreamReplayerOp
3939

40-
from monai.deploy.operators import decoder_nvimgcodec
41-
40+
from . import decoder_nvimgcodec
4241
from .clara_viz_operator import ClaraVizOperator
4342
from .dicom_data_loader_operator import DICOMDataLoaderOperator
4443
from .dicom_encapsulated_pdf_writer_operator import DICOMEncapsulatedPDFWriterOperator
@@ -57,6 +56,7 @@
5756

5857
__all__ = [
5958
"decoder_nvimgcodec",
59+
"BundleConfigNames",
6060
"ClaraVizOperator",
6161
"DICOMDataLoaderOperator",
6262
"DICOMEncapsulatedPDFWriterOperator",
@@ -67,11 +67,15 @@
6767
"EquipmentInfo",
6868
"InferenceOperator",
6969
"IOMapping",
70+
"ModelInfo",
7071
"MonaiBundleInferenceOperator",
7172
"MonaiSegInferenceOperator",
7273
"NiftiDataLoader",
7374
"PNGConverterOperator",
7475
"PublisherOperator",
76+
"random_with_n_digits",
77+
"save_dcm_file",
78+
"write_common_modules",
7579
"STLConversionOperator",
7680
"STLConverter",
7781
]

monai/deploy/operators/decoder_nvimgcodec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
cp = None
8484

8585
try:
86-
from nvidia import nvimgcodec as nvimgcodec
86+
from nvidia import nvimgcodec
8787

8888
nvimgcodec_version = tuple(int(x) for x in nvimgcodec.__version__.split("."))
8989
except ImportError:
@@ -194,7 +194,7 @@ def register_as_decoder_plugin(module_path: str | None = None) -> bool:
194194
For now, have to access the ``private`` property ``_available`` of the Decoder class to sort the available
195195
plugins and make sure this custom plugin is the first in the sorted list by its label. It is known that the
196196
first plugin in the default list is always ``gdcm`` for the supported decoder classes, so label name needs
197-
to be lexicographically greater than ``gdcm`` to be the first in the sorted list.
197+
to be lexicographically less than ``gdcm`` to be the first in the sorted list.
198198
199199
Args:
200200
module_path (str | None): The importable module path for this plugin.

monai/deploy/operators/dicom_series_to_volume_operator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
from monai.deploy.core import ConditionType, Fragment, Operator, OperatorSpec
2525
from monai.deploy.core.domain.dicom_series_selection import StudySelectedSeries
2626
from monai.deploy.core.domain.image import Image
27-
from monai.deploy.operators import decoder_nvimgcodec
27+
28+
from . import decoder_nvimgcodec
2829

2930

3031
class DICOMSeriesToVolumeOperator(Operator):

0 commit comments

Comments
 (0)