Skip to content
Snippets Groups Projects
Commit b53485f1 authored by Carlos Vega's avatar Carlos Vega
Browse files

added pub representation

parent c7dccd1d
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,8 @@ class Publication: ...@@ -5,3 +5,8 @@ class Publication:
self.doi = doi self.doi = doi
self.preprint_id = preprint_id self.preprint_id = preprint_id
self.other_id = other_id self.other_id = other_id
def __repr__(self):
ids = [("PMC_ID", self.pmc_id), ("PM_ID", self.pm_id), ("DOI", self.doi),
("PREPRINT ID", self.preprint_id), ("OTHER ID", self.other_id)]
return ' '.join([str(id) for id in ids if id[1] is not None])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment