Code Monkey home page Code Monkey logo

Comments (8)

vsudilov avatar vsudilov commented on June 3, 2024

Hi,

That script hasn't been updated since the api compatibility update a few months ago. On the bright side, updating it is straightforward ;)

from ads.

manodeep avatar manodeep commented on June 3, 2024

Is there a documented way of making said straightforward change ? :)

from ads.

vsudilov avatar vsudilov commented on June 3, 2024

The API is (hopefully) documented sufficiently well in the README.md to update those example scripts. No worries if you'd rather not make this changes -- I didn't mean to imply expectation on my part.

from ads.

manodeep avatar manodeep commented on June 3, 2024

No worries. I was hoping to use this module for a dotastro hackday. Hopefully I can create a new script by following along the example on the homepage.

Thanks !

from ads.

JohannesBuchner avatar JohannesBuchner commented on June 3, 2024

It does not seem trivial to change: Changing the line

most_cited_papers = ads.search(sort="citations", filter="database:astronomy", rows=200)

to

most_cited_papers = list(ads.SearchQuery(sort="citations", rows=200))

does not work since q must not be empty.

from ads.

vsudilov avatar vsudilov commented on June 3, 2024

Hi,

specifying q="*" should do the trick.

from ads.

jonnybazookatone avatar jonnybazookatone commented on June 3, 2024

This should be fixed in #51. Please re-open if there are further issues.

from ads.

manodeep avatar manodeep commented on June 3, 2024

Works for me. Thanks for the fix

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.