Skip to content

Commit

Permalink
YAML on bottom (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
gleckler1 authored and doutriaux1 committed Jul 25, 2019
1 parent 0ac0e39 commit 3d71023
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pcmdi_metrics/io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ def write(self, data, type='json', mode="w", *args, **kwargs):
f = open(file_name, "w")
update_dict(out_dict, data)
if "yaml" in out_dict["provenance"]["conda"]:
out_dict["yaml"] = out_dict["provenance"]["conda"]["yaml"]
out_dict["YAML"] = out_dict["provenance"]["conda"]["yaml"]
del(out_dict["provenance"]["conda"]["yaml"])
# out_dict = OrderedDict({"provenance": generateProvenance()})

json.dump(out_dict, f, cls=CDMSDomainsEncoder, *args, **kwargs)
f.close()

Expand Down
4 changes: 2 additions & 2 deletions pcmdi_metrics/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = 'v1.2'
__git_tag_describe__ = 'v1.2-65-g794ebe7'
__git_sha1__ = '794ebe7b363f440b52f2d51fe46a33f18286fc33'
__git_tag_describe__ = 'v1.2-66-g0ac0e39'
__git_sha1__ = '0ac0e391be7d3b55a185096a2ded8dbbfe65a146'

0 comments on commit 3d71023

Please sign in to comment.