if 'contact' in collection: contactId = collection['contact']['id'] if contactId not in activeContacts: initContact(contactId) log.debug(" collection %s maps to %s <%s>" % (collectionId, contactsToNames[contactId], contactsToEmails[contactId])) if contactId in contactsToCollections: contactsToCollections[contactId].append(collectionId) else: contactsToCollections[contactId] = [collectionId] else: log.warning("Collection %s does not provide contact information!" % (collectionId)) for biobank in dir.getBiobanks(): log.debug("Analyzing biobank " + biobank['id']) biobankId = biobank['id'] if 'contact' in biobank: contactId = biobank['contact']['id'] if contactId not in activeContacts: initContact(contactId) log.debug(" biobank %s maps to %s <%s>" % (biobankId, contactsToNames[contactId], contactsToEmails[contactId])) if contactId in contactsToBiobanks: contactsToBiobanks[contactId].append(biobankId) else: contactsToBiobanks[contactId] = [biobankId] else: log.warning("Biobank %s does not provide contact information!" %