Skip to content

Commit

Permalink
Merge pull request #500 from Deborah-Digges/add-dataset-name
Browse files Browse the repository at this point in the history
Retriever CLI: Add dataset name to citation output
  • Loading branch information
henrykironde committed Jun 6, 2016
2 parents 177c4d7 + ee87098 commit e3600c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ def main():
elif args.command == 'citation':
if args.dataset is None:
citation_path = os.path.join(os.path.split(__file__)[0], '../CITATION')
print "\nCitation for retriever:\n"
print("\nCitation for retriever:\n")
with open(citation_path) as citation_file:
print citation_file.read()
print(citation_file.read())
else:
scripts = name_matches(script_list, args.dataset)
for dataset in scripts:

print ("\nCitation: {}".format(dataset.citation))
print ("Description: {}\n".format(dataset.description))
print("\nDataset: {}".format(dataset.name))
print("Citation: {}".format(dataset.citation))
print("Description: {}\n".format(dataset.description))

return

Expand Down

0 comments on commit e3600c1

Please sign in to comment.