Skip to content

Commit 707580f

Browse files
authored
Merge branch 'dev' into cicd_test_update
2 parents 5f5482b + 8d39519 commit 707580f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

monai/apps/auto3dseg/auto_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def __init__(
229229
input = os.path.join(os.path.abspath(work_dir), "input.yaml")
230230
logger.info(f"Input config is not provided, using the default {input}")
231231

232-
self.data_src_cfg = dict()
232+
self.data_src_cfg = {}
233233
if isinstance(input, dict):
234234
self.data_src_cfg = input
235235
elif isinstance(input, str) and os.path.isfile(input):

monai/engines/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def __call__(
219219
`kwargs` supports other args for `Tensor.to()` API.
220220
"""
221221
image, label = default_prepare_batch(batchdata, device, non_blocking, **kwargs)
222-
args_ = list()
223-
kwargs_ = dict()
222+
args_ = []
223+
kwargs_ = {}
224224

225225
def _get_data(key: str) -> torch.Tensor:
226226
data = batchdata[key]

monai/transforms/inverse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ def track_transform_meta(
282282
msg += f" for key {key}"
283283

284284
pend = out_obj.pending_operations[-1]
285-
statuses = pend.get(TraceKeys.STATUSES, dict())
286-
messages = statuses.get(TraceStatusKeys.PENDING_DURING_APPLY, list())
285+
statuses = pend.get(TraceKeys.STATUSES, {})
286+
messages = statuses.get(TraceStatusKeys.PENDING_DURING_APPLY, [])
287287
messages.append(msg)
288288
statuses[TraceStatusKeys.PENDING_DURING_APPLY] = messages
289289
info[TraceKeys.STATUSES] = statuses

0 commit comments

Comments
 (0)