Skip to content

Instantly share code, notes, and snippets.

@kaplun
Created November 17, 2017 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaplun/4c5e61671d2f1957422817145d807474 to your computer and use it in GitHub Desktop.
Save kaplun/4c5e61671d2f1957422817145d807474 to your computer and use it in GitHub Desktop.
duplicate CDS
for elem in a:
recid = elem[0]
cdsid = elem[3]
out.setdefault(cdsid, recid)
if out[cdsid] != recid:
print "http://inspirehep.net/record/%s" % out[cdsid], "http://inspirehep.net/record/%s" % recid, "https://inspirehep.net/record/merge/#recid1=%s&recid2=%s" % (out[cdsid], recid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment