Whilst testing the population command on the complete ROR dataset, I came across a KeyError for the GRID identifier. The reason for this error was the absence of GRID identifiers under 713 research organizations. Unable to locate GRID under external_ids was what raised this error.
This pull request provides a bug-fix to this issue by using the .get command for Python dictionaries where the value is defaulted to None in case of missing fields. A research organization called "Axiom Data Science" with no grid identifier was added to the sample dataset. Tests were added and updated to reflect these changes and scenarios.
Whilst testing the population command on the complete ROR dataset, I came across a
KeyError
for theGRID
identifier. The reason for this error was the absence ofGRID
identifiers under 713 research organizations. Unable to locateGRID
underexternal_ids
was what raised this error.This pull request provides a bug-fix to this issue by using the
.get
command for Python dictionaries where the value is defaulted toNone
in case of missing fields. A research organization called "Axiom Data Science" with no grid identifier was added to the sample dataset. Tests were added and updated to reflect these changes and scenarios.