Code Monkey home page Code Monkey logo

Comments (5)

tiborsimko avatar tiborsimko commented on June 21, 2024

After #18 was fixed, the error message is:

$ cernopendata-client get-record --title '/BTau/Run2010B-Apr21ReReco-v1/AOD'
More than one record fit this title. This should not happen.

See two records: http://opendata.cern.ch/search?page=1&size=20&q=title:%22%2FBTau%2FRun2010B-Apr21ReReco-v1%2FAOD%22

However, there is precisely one dataset record matching the given title exactly, record ID 1, which should be returned...

from cernopendata-client.

tiborsimko avatar tiborsimko commented on June 21, 2024

(which means that this issue may need to amend search capabilities to offer "exact matching" option)

from cernopendata-client.

tiborsimko avatar tiborsimko commented on June 21, 2024

Just for completeness, here is an example that works:

$ cernopendata-client get-file-locations --title '/DoubleElectron/Run2012B-v1/RAW'

from cernopendata-client.

tiborsimko avatar tiborsimko commented on June 21, 2024

@ParthS007 The last example broke after recent refactoring merge (#32). Can you please look at it?

$ cernopendata-client get-file-locations --title '/DoubleElectron/Run2012B-v1/RAW'
...
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

P.S. It would be good to start introducing test suite to catch these early. I'll create an issue about it.

from cernopendata-client.

tiborsimko avatar tiborsimko commented on June 21, 2024

cernopendata-client get-file-locations --title '/DoubleElectron/Run2012B-v1/RAW'

Fixed as part of PR #42.

The only remaining problem is now returning multiple records. I'll create a separate issue for this.

from cernopendata-client.

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.