pybliometrics icon indicating copy to clipboard operation
pybliometrics copied to clipboard

AffiliationSearch().affiliations field parent should be integer or None

Open Michael-E-Rose opened this issue 1 year ago • 0 comments
trafficstars

from pybliometrics.scopus import AffiliationSearch
q = 'AF-ID(101077409)'
s = AffiliationSearch(q)
print(s.affiliations)

output is

[Affiliation(eid='10-s2.0-101077409', name='Planned Parenthood of Indiana',
                  variant='Planned Parenthood of Indiana, Inc.', documents=2, city='Indianapolis',
                  country='United States', parent='0')]

Field parent should be integer, unless it evaluates to 0, in which case it should be None. It think it is always None be now, but Scopus still returns this field.

Please change code, adapt tests and update the documentation.

Michael-E-Rose avatar May 16 '24 13:05 Michael-E-Rose