Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: staydelight <[email protected]>
  • Loading branch information
staydelight committed Jun 3, 2024
1 parent 3086cf9 commit 266f87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/transforms/io/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def __call__(
self._data_index += 1
if self.savepath_in_metadict and meta_data is not None:
meta_data["saved_to"] = filename
if self.mapping_json_path and meta_data is not None:
if self.mapping_json_path is not None and meta_data is not None:
log_data = []
log_data.append(
{"input": meta_data.get("filename_or_obj", ()), "output": meta_data.get("saved_to", ())}
Expand Down

0 comments on commit 266f87c

Please sign in to comment.