Skip to content

Commit c026441

Browse files
committed
fix format
Signed-off-by: YunLiu <[email protected]>
1 parent b0acb17 commit c026441

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

monai/bundle/workflows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ def __init__(
126126
elif workflow_type is None:
127127
if "meta" in properties:
128128
self.properties = properties["meta"]
129-
logger.info("No workflow type specified, default to load meta properties from property file.")
129+
logger.info(
130+
"No workflow type specified, default to load meta properties from property file."
131+
)
130132
else:
131133
logger.warning("No 'meta' key found in properties while workflow_type is None.")
132134
except KeyError as e:

tests/test_bundle_workflow.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
from __future__ import annotations
1313

1414
import os
15-
import sys
1615
import shutil
16+
import sys
1717
import tempfile
1818
import unittest
1919
from copy import deepcopy
@@ -174,10 +174,7 @@ def test_pythonic_workflow(self):
174174
meta_file = os.path.join(os.path.dirname(__file__), "testing_data", "metadata.json")
175175
property_path = os.path.join(os.path.dirname(__file__), "testing_data", "python_workflow_properties.json")
176176
workflow = PythonicWorkflowImpl(
177-
workflow_type="infer",
178-
config_file=config_file,
179-
meta_file=meta_file,
180-
properties_path=property_path
177+
workflow_type="infer", config_file=config_file, meta_file=meta_file, properties_path=property_path
181178
)
182179
workflow.initialize()
183180
# Load input data
@@ -208,7 +205,7 @@ def test_create_pythonic_workflow(self):
208205
workflow_type="infer",
209206
config_file=config_file,
210207
meta_file=meta_file,
211-
properties_path=property_path
208+
properties_path=property_path,
212209
)
213210
# Load input data
214211
input_loader = LoadImaged(keys="image")

0 commit comments

Comments
 (0)