Skip to content

Commit

Permalink
Merge pull request #595 from gkiar/logger-descriptor-matching
Browse files Browse the repository at this point in the history
added doi pop prior to zenodo/loaded descriptor comparison
  • Loading branch information
glatard committed Mar 11, 2020
2 parents cf5ec2e + a01312d commit 7023efb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/python/boutiques/localExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,11 @@ def _findDOI(self, userIn):
# Most recent DOI in file if user is publisher
# Include check to ensure descriptor is unmodified
if self.desc_dict.get('doi') is not None:
doi = self.desc_dict.get('doi')
# Popping the DOI allows it to match published version.
# In a match, we'll re-add the DOI
doi = self.desc_dict.pop('doi')
if loadJson(doi) == self.desc_dict:
self.desc_dict['doi'] = doi
return doi
# DOI in filename if descriptor pulled from Zenodo
# Include check to ensure descriptor is as published
Expand Down

0 comments on commit 7023efb

Please sign in to comment.