Teichlab / celltypist

A tool for semi-automatic cell type classification
https://www.celltypist.org/
MIT License
260 stars 40 forks source link

download_models corrupts models.json when the server is unavailable #67

Closed itamarb-cgen closed 11 months ago

itamarb-cgen commented 1 year ago

Hi, If force_update=True in models.download_models and the server is unavailable (see error message below) - the function corrupts .celltypist/data/models/models.json and cellTypist cannot work on the previously downloaded models.

Error message: Exception: 🛑 Cannot fetch 'https://celltypist.cog.sanger.ac.uk/models/models.json', the error is: 503 Server Error: Service Unavailable for url: https://celltypist.cog.sanger.ac.uk/models/models.json

Thanks, Itamar

prete commented 1 year ago

Hi @itamarb-cgen, thanky for using CellTypist. I'm so sorry that the service is not working right now. The server that hosts the models is currently having problems serving files. We're aware of the issue and our infrastructuree team is working hard to resolve it as quickly as possible.

AndreaMariani-AM commented 1 year ago

Hi all, I can confirm both that the server is unavailable and that force_update=True has corrupted previously downloaded models.

Hope it'll be an easy fix for you guys.

Thanks for all, Andrea

ChuanXu1 commented 11 months ago

This should be fixed now