pybliometrics-dev / pybliometrics

Python-based API-Wrapper to access Scopus
https://pybliometrics.readthedocs.io/en/stable/
Other
420 stars 129 forks source link

self-cites exclusion not working? #189

Closed IvanSterligov closed 3 years ago

IvanSterligov commented 3 years ago

Hello, don't know whether this is a bug or something's wrong with my setup (I'm not a python expert), but:

I copied code lines from example https://pybliometrics.readthedocs.io/en/stable/examples/CitationOverview.html :

from pybliometrics.scopus import CitationOverview co = CitationOverview("2-s2.0-85068268027", start=2019, end=2021) print(co) co_self = CitationOverview("2-s2.0-85068268027", start=2019, end=2021, citation="exclude-self", refresh=True) print(co_self)

and this leads to:

%Run test_getcites.py Document 'pybliometrics: Scriptable bibliometrics using a Python interface to Scopus' by Rose M.E., Rose M.E. and Kitchin J.R. published in 'SoftwareX' has the following citation trajectory as of 2021-03-12: Before 2019 0; 2019: 0; 2020: 6; 2021: 1; After 2021: 0 times Traceback (most recent call last): File "C:\Dropbox\SCenter\Scopus API\test_getcites.py", line 4, in co_self = CitationOverview("2-s2.0-85068268027", start=2019, end=2021, citation="exclude-self", refresh=True) TypeError: init() got an unexpected keyword argument 'citation'

IvanSterligov commented 3 years ago

my bad, I did not update the pybliometrcis package and it was from pre-self-cites-exclusion era