Skip to content

Commit 5d6ed8c

Browse files
committed
Fix formatting complaints
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent 4d380f7 commit 5d6ed8c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/apps/simple_imaging_app/gaussian_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def compute(self, op_input, op_output, context):
7272
# Some details can be found at https://stackoverflow.com/questions/55319949/pil-typeerror-cannot-handle-this-data-type
7373
print(f"Data type of output: {type(data_out)!r}, max = {np.max(data_out)!r}")
7474
if np.max(data_out) <= 1:
75-
data_out = (data_out*255).astype(np.uint8)
75+
data_out = (data_out * 255).astype(np.uint8)
7676
print(f"Data type of output post conversion: {type(data_out)!r}, max = {np.max(data_out)!r}")
7777

7878
# For now, use attribute of self to find the output path.

monai/deploy/core/app_context.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ def update(self, args: Dict[str, str]):
4747
self._model_loaded = False # path changed, reset the flag to re-load
4848

4949
if not self._model_loaded:
50-
self.models: Optional[Model] = (
51-
ModelFactory.create(abspath(self.model_path))
52-
)
50+
self.models: Optional[Model] = ModelFactory.create(abspath(self.model_path))
5351
self._model_loaded = True
5452

5553
def __repr__(self):

0 commit comments

Comments
 (0)