diff --git a/pcmdi_metrics/io/base.py b/pcmdi_metrics/io/base.py index 2dfcf9287..fadcce29a 100755 --- a/pcmdi_metrics/io/base.py +++ b/pcmdi_metrics/io/base.py @@ -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() diff --git a/pcmdi_metrics/version.py b/pcmdi_metrics/version.py index efdbe2380..d3ffe949c 100644 --- a/pcmdi_metrics/version.py +++ b/pcmdi_metrics/version.py @@ -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'