Comments (4)
Hi,
Could you fill out the steps to reproduce please (I guess I just need "myname" specifically) ? Is it still a bug for other author names?
from ads.
Hi
Yes,
e.g. also the following:
In [1]: import ads.sandbox as ads
In [2]: myname = "Rossi, A"
In [3]: papers = list(ads.SearchQuery(author=myname, max_pages=6, database
= "*",fl=['citation_count', 'bibcode', 'title', 'bibtex','year','author']))
In [4]: print papers[0].author
[u'Sudilovsky, Oscar', u'Pestana, Angel', u'Hinderaker, Paul H.', u'Pitot,
Henry C.']
In [5]: print papers[0].year
1971
In [6]: print papers[0].bibtex
None
While instead:
In [1]: import ads.sandbox as ads
In [2]: myname = "Rossi, A"
In [3]: papers = list(ads.SearchQuery(author=myname, max_pages=6, database
= "*"))
In [4]: print papers[0].author
[u'Sudilovsky, Oscar', u'Pestana, Angel', u'Hinderaker, Paul H.', u'Pitot,
Henry C.']
In [5]: print papers[0].year
1971
In [6]: print papers[0].bibtex
/home/saro/Python/yes/lib/python2.7/site-packages/ads/utils.py:23:
UserWarning: You are lazy loading attributes via 'bibtex', and so are
making multiple calls to the API. This will impact your overall rate limits.
UserWarning,
@Article{2013A&A...552A.143S,
author = {{Sudilovsky}, V. and {Greiner}, J. and {Rau}, A. and
{Salvato}, M. and
{Savaglio}, S. and {Vergani}, S.~D. and {Schady}, P. and {Elliott}, J.
and
{Kr{"u}hler}, T. and {Kann}, D.~A. and {Klose}, S. and {Rossi}, A. and
{Filgas}, R. and {Schmidl}, S.},
title = "{Clustering of galaxies around gamma-ray burst sight-lines}",
journal = {\aap},
archivePrefix = "arXiv",
eprint = {1302.6362},
keywords = {gamma-ray burst: general, galaxies: statistics},
year = 2013,
month = apr,
volume = 552,
eid = {A143},
pages = {A143},
doi = {10.1051/0004-6361/201321247},
adsurl = {http://adsabs.harvard.edu/abs/2013A%26A...552A.143S},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
Thanks a lot!
Alex
On 2 August 2016 at 16:57, Vladimir Sudilovsky [email protected]
wrote:
Hi,
Could you fill out the steps to reproduce please (I guess I just need
"myname" specifically) ? Is it still a bug for other author names?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#73 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AG5sL8rkBWQcfrxgn6RMhmW3rEOrqo1Uks5qb1rngaJpZM4Jao5T
.
from ads.
The issue comes from including bibtex
in the fl
. bibtex
isn't a field that is returned by ADS search directly; it is computed dynamically.
For now just remove it from the fl
. We'll address this by removing metrics
and bibtex
from the article constructor on https://github.com/andycasey/ads/blob/master/ads/search.py#L321. (N.B. there is no way to make those queries via ads.Article
without making an additional API call)
from ads.
Thanks!
Alex
On 2 August 2016 at 21:26, Vladimir Sudilovsky [email protected]
wrote:
The issue comes from including bibtex in the fl. bibtex isn't a field
that is returned by ADS search directly; it is computed dynamically.For now just remove it from the fl. We'll address this by removing
@cached_property from bibtex and metrics. (N.B. there is no way to make
those queries via ads.Article without making an additional API call)—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#73 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AG5sL39qeOBS3k_xJ16oLZBnuC8HwDkpks5qb5nlgaJpZM4Jao5T
.
from ads.
Related Issues (20)
- `ads.SearchQuery` returns a status 500 APIResponseError HOT 6
- SearchQuery not respecting start parameter HOT 27
- docs: link to available search field needs updating HOT 3
- author_count return None HOT 3
- How do you search on a range of years? HOT 1
- citation_count returns None HOT 2
- Missing paper.journal attribute HOT 1
- Missing .adsurl attribute HOT 1
- API Response Error HOT 2
- Search parameters wrapped in parentheses should not be auto-quoted
- readthedocs rendering is broken HOT 2
- support for Positional Field Searches HOT 1
- ExportQuery not working properly HOT 1
- Not able to use timeAllowed and cursorMark combination HOT 1
- Why is the total number of filtered articles and citation_count cumulative number inconsistent with manual searches? HOT 1
- API Response Error while running example HOT 1
- search using both cursorMark and timeAllowed HOT 8
- All queries fail with SSLError HOT 8
- Feature Request: search by arxiv-id HOT 7
- Non-lazy loading leads to missing properties in SeachQuery HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ads.