Skip to content

Commit a255f25

Browse files
committed
ValidationSummary.log -> save
1 parent 545ac54 commit a255f25

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bioimageio/core/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class WithSummaryLogging(ArgMixin):
106106
"""
107107

108108
def log(self, descr: Union[ResourceDescr, InvalidDescr]):
109-
_ = descr.validation_summary.log(self.summary)
109+
_ = descr.validation_summary.save(self.summary)
110110

111111

112112
class WithSource(ArgMixin):
@@ -735,7 +735,7 @@ def run(self):
735735
if updated_model_descr is None:
736736
return
737737

738-
_ = updated_model_descr.validation_summary.log()
738+
_ = updated_model_descr.validation_summary.save()
739739

740740

741741
JSON_FILE = "bioimageio-cli.json"

bioimageio/core/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test(
4646
runtime_env=runtime_env,
4747
determinism=determinism,
4848
)
49-
_ = test_summary.log(summary)
49+
_ = test_summary.save(summary)
5050
return 0 if test_summary.status == "passed" else 1
5151

5252

@@ -60,7 +60,7 @@ def validate_format(
6060
Args:
6161
descr: a bioimageio resource description
6262
"""
63-
_ = descr.validation_summary.log(summary)
63+
_ = descr.validation_summary.save(summary)
6464
return 0 if descr.validation_summary.status == "passed" else 1
6565

6666

@@ -82,7 +82,7 @@ def package(
8282
weight-format: include only this single weight-format (if not 'all').
8383
"""
8484
if isinstance(descr, InvalidDescr):
85-
logged = descr.validation_summary.log()
85+
logged = descr.validation_summary.save()
8686
msg = f"Invalid {descr.type} description."
8787
if logged:
8888
msg += f" Details saved to {logged}."

0 commit comments

Comments
 (0)