Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dasgoclient implementation #22

Open
demarley opened this issue May 4, 2018 · 0 comments
Open

dasgoclient implementation #22

demarley opened this issue May 4, 2018 · 0 comments

Comments

@demarley
Copy link

demarley commented May 4, 2018

When given a dataset to process, access the information using dasgoclient instead of manually entering it.

import json
import commands
dasgo = commands.getoutput('dasgoclient -query="dataset=/.../" -json') # returns a string
dasgo_dict = json.loads(dasgo)
# get information (primary dataset name, MC/Data) from dasgo_dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant