Skip to content

Commit

Permalink
don't set dois for legacy models
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Aug 5, 2024
1 parent e0aa433 commit d788fef
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bioimageio_collection_backoffice/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,7 @@ def backup_published_version(
raise ValueError("Missing bioimage.io `id`")

if rdf.id.startswith("10.5281/zenodo"):
# use legacy doi and concept doi
parts = rdf.id.split("/")
assert len(parts) == 3
concept_doi = "/".join(parts[:2])
doi = f"10.5281/zenodo{parts[2]}"
v.set_dois(doi=doi, concept_doi=concept_doi)
# ignore legacy model
return

if rdf.type == "application" and "notebook" not in rdf.tags:
Expand Down

0 comments on commit d788fef

Please sign in to comment.