-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
There appears to be an issue with the update method, specifically in the get_mgds method. At least one of the mgd ids appears to be simply "M" which causes the code to fall over.
Line 187 in database.py. I solved this by:
def get_mgds(self, hgnc):
mgds = []
if 'mgd_id' in hgnc:
for mgd in hgnc['mgd_id']:
if mgd not in self.mgds:
try:
mgdid = int(mgd.split(':')[-1])
except ValueError:
mgdid = None
if mgdid:
self.mgds[mgd] = models.MGD(mgdid=mgdid)
mgds.append(self.mgds[mgd])
return mgds
However, I'm not sure if the real issue is in the download or not.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels