From d788fefeda787a76ac051a40cadab5ab6713cba7 Mon Sep 17 00:00:00 2001 From: fynnbe Date: Mon, 5 Aug 2024 10:03:28 +0200 Subject: [PATCH] don't set dois for legacy models --- bioimageio_collection_backoffice/backup.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bioimageio_collection_backoffice/backup.py b/bioimageio_collection_backoffice/backup.py index d1561dc9..35284a98 100644 --- a/bioimageio_collection_backoffice/backup.py +++ b/bioimageio_collection_backoffice/backup.py @@ -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: