dpdata-abinit


Namedpdata-abinit JSON
Version 0.0.3 PyPI version JSON
download
home_page
SummaryDpdata plugin of ABINIT hist file
upload_time2023-06-07 14:12:57
maintainer
docs_urlNone
author
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dpdata_abinit
Abinit plugin for dpdata

Install
```
pip install .
```

Usage:

1. Prepare the abinit histfile which contains a set of structures 
and the corresponding energies, forces, and stresses. Here we call this file
 Abinit_hist_file.abihist

2. Write a python script like this. 
```Python
#!/usr/bin/env python3

import dpdata
# load data from the file Abinit_hist_file.abihist
d = dpdata.LabeledSystem("Abinit_hist_file.abihist", format='abihist')
# write to raw file
d.to_deepmd_raw('00.data')
# You can also write to npy file.  The data set is splitted into multiple npy files, each containing set_size of samples.
d.to_deepmd_npy('00.data', set_size=2638)
```

3. Run the script 

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "dpdata-abinit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/a7/bf/7df7ce8aa5f73e90d12394cd14551008ba08b62a01f3fedbf01b33b2a0d2/dpdata_abinit-0.0.3.tar.gz",
    "platform": null,
    "description": "# dpdata_abinit\nAbinit plugin for dpdata\n\nInstall\n```\npip install .\n```\n\nUsage:\n\n1. Prepare the abinit histfile which contains a set of structures \nand the corresponding energies, forces, and stresses. Here we call this file\n Abinit_hist_file.abihist\n\n2. Write a python script like this. \n```Python\n#!/usr/bin/env python3\n\nimport dpdata\n# load data from the file Abinit_hist_file.abihist\nd = dpdata.LabeledSystem(\"Abinit_hist_file.abihist\", format='abihist')\n# write to raw file\nd.to_deepmd_raw('00.data')\n# You can also write to npy file.  The data set is splitted into multiple npy files, each containing set_size of samples.\nd.to_deepmd_npy('00.data', set_size=2638)\n```\n\n3. Run the script \n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Dpdata plugin of ABINIT hist file",
    "version": "0.0.3",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "366c19e7b0e2cb85e66aaf6dc23b0ff449fda7c96d2c311dc59592f53d2d4aa6",
                "md5": "ebe727b21e59333fe83400f5e5473ca6",
                "sha256": "c7570a55374ffbb367b105ac602738e840d79fbac5eed1abadd8a5a8558248fc"
            },
            "downloads": -1,
            "filename": "dpdata_abinit-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ebe727b21e59333fe83400f5e5473ca6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 13984,
            "upload_time": "2023-06-07T14:12:55",
            "upload_time_iso_8601": "2023-06-07T14:12:55.726596Z",
            "url": "https://files.pythonhosted.org/packages/36/6c/19e7b0e2cb85e66aaf6dc23b0ff449fda7c96d2c311dc59592f53d2d4aa6/dpdata_abinit-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a7bf7df7ce8aa5f73e90d12394cd14551008ba08b62a01f3fedbf01b33b2a0d2",
                "md5": "993865202f22b26ef6bafa7dd9576aaa",
                "sha256": "1349585c2ceba61cdb339dd0ed9da727943e94a17794e27d62377a9359602810"
            },
            "downloads": -1,
            "filename": "dpdata_abinit-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "993865202f22b26ef6bafa7dd9576aaa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12269,
            "upload_time": "2023-06-07T14:12:57",
            "upload_time_iso_8601": "2023-06-07T14:12:57.467204Z",
            "url": "https://files.pythonhosted.org/packages/a7/bf/7df7ce8aa5f73e90d12394cd14551008ba08b62a01f3fedbf01b33b2a0d2/dpdata_abinit-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-07 14:12:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "dpdata-abinit"
}
        
Elapsed time: 0.10775s