-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dcp-954 update bionetworks #530
base: master
Are you sure you want to change the base?
Conversation
self.submissions = {} | ||
self.project_submissions = {} | ||
|
||
def get_exported_projects(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be faster to get all projects from azul, then compare it with the list of projects in ingest?
Currently we have 1025 projects registered in ingest, and there are 386 in azul, so instead of having 53 calls to ingest (I am assuming page size of 20? in api.get_all) + 1025 requests to azul, we would have 40 to azul + 53 to ingest? it would be a bit more memory-intensive since we would need to hold the list of azul projects and parse the list, but I think it would be more time efficient
Since it's a one off, this works perfectly fine, I was just wondering :)
A script to update a project's bio network association.
dcp-954
ebi-ait/dcp-ingest-central#954