bioimage-io / bioimage.io

Website for the BioImage Model zoo -- a model zoo for bioimage analysis.
https://bioimage.io
MIT License
55 stars 19 forks source link

How to update a model via upload button? #118

Closed constantinpape closed 3 years ago

constantinpape commented 3 years ago

I am trying to update a model via the update button, however I am only shown that a nameclash exist, but not able to go forward to update the model with that name:

Screenshot from 2021-06-20 19-59-59

oeway commented 3 years ago

What do you want to do exactly? This means you need to rename your current local model by clicking "go back to rename".

Do you mean you want to overwrite the package on zenodo? If yes. Could you try to specify the doi of your existing model in the first step use option 3, then try to update it.

We don't support updating deposits with a package (option 1) for now, perhaps we should also support that, e.g. add a "Update" button on the detected deposit.

constantinpape commented 3 years ago

Do you mean you want to overwrite the package on zenodo?

Yes, exactly.

Could you try to specify the doi of your existing model in the first step use option 3, then try to update it.

I tried that for this model: https://sandbox.zenodo.org/record/865994#.YM-RsTqxXJU But I run into the folloing error: Screenshot from 2021-06-20 21-09-55

We don't support updating deposits with a package (option 1) for now, perhaps we should also support that, e.g. add a "Update" button on the detected deposit.

Yes, I think it would be good to support this option, it's easier than searching for the doi before updating.

oeway commented 3 years ago

@constantinpape Could you give it a try: https://github.com/bioimage-io/bioimage.io/pull/119/

I fixed both options.