Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package information not showing up in JSON #587

Closed
lee1043 opened this issue Dec 7, 2018 · 2 comments
Closed

package information not showing up in JSON #587

lee1043 opened this issue Dec 7, 2018 · 2 comments

Comments

@lee1043
Copy link
Contributor

lee1043 commented Dec 7, 2018

Before the pmp update, bottom of my JSON created using below commend

JSON = pcmdi_metrics.io.base.Base(os.path.join(json_file)
JSON.write(my_dict, json_structure=["model","realization","reference","mode","season","statistic"],
               sort_keys=True, indent=4, separators=(',', ': '))

was looking like below:

    "json_version": 3.0,
    "provenance": {
        "commandLine": "run_psd_loop.py -p my_Param.py",
        "conda": {
            "DefaultEnvironment": "/export_backup/lee1043/anaconda2/envs/pmp_nightly_20180124",
            "IsPrivate": "False",
            "Platform": "linux-64",
            "PythonVersion": "2.7.13.final.0",
            "RootEnvironment": "/export_backup/lee1043/anaconda2  (writable)",
            "Version": "4.3.24",
            "buildVersion": "not installed",
            "envVersion": "4.3.24"
        },
        "date": "2018-03-22 15:07:58",
        "openGL": {
            "GLX": {
                "client": {},
                "server": {}
            }
        },
        "osAccess": false,
        "packages": {
            "CDP": "2017.09.07",
            "PMP": "1.1.2.2017.06.30.19.40.66ce8fec99c4e1d404dc0e5f25d4e6f8e6339f66",
            "PMPObs": null,
            "blas": null,
            "cdms": "2.12.2017.11.30.06.06.14b9b9380c14680498a0ba8e9aefb4c84d2756be",
            "cdtime": "2018.01.24",
            "cdutil": "2.12.2017.11.16.21.46.e717f782e07d0a187f2b616a408103af20ceb57f",
            "clapack": "3.2.1",
            "esmf": "7.0.0",
            "esmpy": "7.0.0",
            "genutil": "2017.11.15",
            "lapack": "3.6.1",
            "matplotlib": "2.1.2",
            "mesalib": null,
            "numpy": "1.13.1",
            "python": "2.7.14",
            "vcs": "2.12.2018.01.24.16.21.d67c83aa153d32062df5c20f0c68e5a6f2103e8f",
            "vtk": "7.1.0.2.12"
        },
        "platform": {
            "Name": "crunchy.llnl.gov",
            "OS": "Linux",
            "Version": "2.6.32-696.23.1.el6.x86_64"
        },
        "userId": "lee1043"
    }
}

However, after I update pmp nightly to recent (version below), I got below, which is loosing conda and package info:

$ conda list pcmdi_metrics
# Name                    Version                   Build  Channel
pcmdi_metrics             1.2.2018.11.15.19.02.g9cf5870    pyh39e3cac_0    pcmdi/label/nightly
    "json_structure": [
        "model",
        "realization",
        "reference",
        "mode",
        "season",
        "statistic"
    ],
    "json_version": 3.0,
    "provenance": {
        "commandLine": "run_psd_loop.py -p my_Param.py",
        "conda": {},
        "date": "2018-12-06 15:56:36",
        "openGL": {
            "GLX": {
                "client": {},
                "server": {}
            }
        },
        "osAccess": false,
        "packages": {},
        "platform": {
            "Name": "crunchy.llnl.gov",
            "OS": "Linux",
            "Version": "2.6.32-696.30.1.el6.x86_64"
        },
        "userId": "lee1043"
    }
}

@doutriaux1 any idea? @gleckler1 @durack1 any similar experience?

@doutriaux1
Copy link
Contributor

I'll take a look. Thanks for spotting this!

doutriaux1 added a commit that referenced this issue Jul 18, 2019
@gleckler1
Copy link
Contributor

gleckler1 commented Jul 18, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants