Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Nov 12, 2024
1 parent 5327dac commit 291e33b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scripts/check_compatibility_biapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ruyaml import YAML

from bioimageio_collection_backoffice.db_structure.compatibility import (
CompatiblityReport,
CompatibilityReport,
)
from bioimageio_collection_backoffice.remote_collection import Record, RemoteCollection
from bioimageio_collection_backoffice.s3_client import Client
Expand All @@ -22,7 +22,7 @@ def check_compatibility_biapy_impl(

rdf = record.get_rdf()
if rdf.get("type") != "model":
return CompatiblityReport(
return CompatibilityReport(
tool=tool,
error=None,
status="not-applicable",
Expand All @@ -34,7 +34,7 @@ def check_compatibility_biapy_impl(
status = "passed" if not error else "failed"
if error:
print(f"Reason why BiaPy is not compatible: {error_message}")
return CompatiblityReport(
return CompatibilityReport(
tool=tool,
status=status,
details=error_message,
Expand Down
4 changes: 2 additions & 2 deletions scripts/upload_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ruyaml import YAML

from bioimageio_collection_backoffice.db_structure.compatibility import (
CompatiblityReport,
CompatibilityReport,
)
from bioimageio_collection_backoffice.remote_collection import (
get_remote_resource_version,
Expand Down Expand Up @@ -37,7 +37,7 @@ def upload_reports(reports_folder: Union[Path, str]):
continue

assert isinstance(report_data, dict)
report = CompatiblityReport(tool=tool, **report_data)
report = CompatibilityReport(tool=tool, **report_data)

record = get_remote_resource_version(
client=client, concept_id=concept, version=version
Expand Down

0 comments on commit 291e33b

Please sign in to comment.