Comments (5)
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.
(which means that this issue may need to amend search capabilities to offer "exact matching" option)
from cernopendata-client.
Just for completeness, here is an example that works:
$ cernopendata-client get-file-locations --title '/DoubleElectron/Run2012B-v1/RAW'
from cernopendata-client.
@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.
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)
- walker: enrich output with parent directories
- Consistency between top-level CLI notion behind "protocol" and low-level Searcher notion behind "protocol"
- cernopendata-client get-metadata --recid 550 --output-value title
- searcher: JSON Decode error for `--verbose`
- CI: Test on multiple enviornments
- file locations: distinguish between EOSPUBLIC and OPENDATA URIs
- download-files: expose HTTP downloader choice (requests vs pycurl) HOT 1
- download-files: success for 5000, failure for 12341
- installation: xrootd troubles HOT 1
- downloader: CLI breaks when record has no files
- Raise exceptions when using the methods outside the CLI
- Download with docker - where do the files go? HOT 2
- Parallelize Downloads
- cli: add support for multiple filter arguments in the get-metadata command
- Verbose mode in get-file-locations HOT 1
- downloader: partial downloads are marked as success:
- cernopendata-client get-file-locations --recid 282 --protocol xrootd --verbose HOT 1
- searcher: separate out get_list_directory() and friends
- downloader: catch more error situations HOT 4
- downloader: resume interrupted downloads HOT 3
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 cernopendata-client.