GithubHelp home page GithubHelp logo

Bibtex issue about ads HOT 4 CLOSED

andycasey avatar andycasey commented on May 25, 2024
Bibtex issue

from ads.

Comments (4)

vsudilov avatar vsudilov commented on May 25, 2024

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.

sidereomundi avatar sidereomundi commented on May 25, 2024

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.

vsudilov avatar vsudilov commented on May 25, 2024

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.

sidereomundi avatar sidereomundi commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.