Name | pymatgen-io-fleur JSON |
Version |
0.5.0
JSON |
| download |
home_page | None |
Summary | A pymatgen add-on for IO for the fleur code. |
upload_time | 2023-05-05 12:24:58 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
pymatgen
fleur
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
|MIT license| |Github version| |PyPi version| |PyPi pyversion| |Build status| |Coverage status|
Pymatgen-io-fleur
=========================
This is a `pymatgen <https://pymatgen.org/>`_ IO addon for the LAPW code `fleur <https://www.flapw.de/>`_. This addon includes:
* Reading/writing input files for the the fleur input generator (inpgen)
* Reading of xml files used by the main fleur code
Installation
+++++++++++++
.. code-block::
pip install pymatgen-io-fleur
Usage
++++++
This addon adds a class ``FleurInput`` to the pymatgen IO namespace, which can read in inpgen and inp.xml files and can write inpgen
input back out.
Initializing a ``FleurInput`` from a file
.. code-block:: python
from pymatgen.io.fleur import FleurInput
#From inpgen input (automatically detected by missing xml in extension)
fleur_inp = FleurInput.from_file('inp_example')
#From XML input
fleur_inp = FleurInput.from_file('inp.xml')
#The object has the following attributes
print(fleur_inp.structure) #Associated structure
print(fleur_inp.title) #Optional title string
print(fleur_inp.lapw_parameters) #dict with additional LAPW parameters
Writing inpgen input back out
.. code-block:: python
fleur_inp.write_file('inp_new')
#Adding some additional LAPW parameters
fleur_inp.write_file('inp_new', parameters={'comp': {'kmax': 4.5}})
Usage from pymatgen ``Structure`` object
.. code-block:: python
from pymatgen.core import Structure
#inpgen input (filename starts with inp_)
s = Structure.from_file('inp_test')
#XML input (filename is of the form inp*.xml)
s = Structure.from_file('inp.xml')
s.to('inp_example',format='fleur-inpgen')
License
++++++++
*pymatgen-io-fleur* is distributed under the terms and conditions of the MIT license.
.. |MIT license| image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: LICENSE
.. |GitHub version| image:: https://img.shields.io/github/v/tag/JuDFTTeam/pymatgen-io-fleur?include_prereleases&label=GitHub%20version&logo=GitHub
:target: https://github.com/JuDFTteam/pymatgen-io-fleur/releases
.. |PyPI version| image:: https://img.shields.io/pypi/v/pymatgen-io-fleur
:target: https://pypi.org/project/pymatgen-io-fleur/
.. |PyPI pyversion| image:: https://img.shields.io/pypi/pyversions/pymatgen-io-fleur
:target: https://pypi.org/project/pymatgen-io-fleur/
.. |Build status| image:: https://github.com/JuDFTteam/pymatgen-io-fleur/actions/workflows/testing.yml/badge.svg?branch=develop&event=push
:target: https://github.com/JuDFTteam/pymatgen-io-fleur/actions
.. |Coverage Status| image:: https://codecov.io/gh/JuDFTteam/pymatgen-io-fleur/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/JuDFTteam/pymatgen-io-fleur
Raw data
{
"_id": null,
"home_page": null,
"name": "pymatgen-io-fleur",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "pymatgen,fleur",
"author": null,
"author_email": "The JuDFT team <he.janssen@fz-juelich.de>",
"download_url": "https://files.pythonhosted.org/packages/d1/72/c490c76005ee21250b53482999c255fd951dedf68fc5bcec128fb7caf7a9/pymatgen-io-fleur-0.5.0.tar.gz",
"platform": null,
"description": "|MIT license| |Github version| |PyPi version| |PyPi pyversion| |Build status| |Coverage status|\n\nPymatgen-io-fleur\n=========================\n\nThis is a `pymatgen <https://pymatgen.org/>`_ IO addon for the LAPW code `fleur <https://www.flapw.de/>`_. This addon includes:\n\n* Reading/writing input files for the the fleur input generator (inpgen)\n* Reading of xml files used by the main fleur code\n\nInstallation\n+++++++++++++\n\n.. code-block::\n\n pip install pymatgen-io-fleur\n\nUsage\n++++++\n\nThis addon adds a class ``FleurInput`` to the pymatgen IO namespace, which can read in inpgen and inp.xml files and can write inpgen\ninput back out.\n\nInitializing a ``FleurInput`` from a file\n\n.. code-block:: python\n\n from pymatgen.io.fleur import FleurInput\n\n #From inpgen input (automatically detected by missing xml in extension)\n fleur_inp = FleurInput.from_file('inp_example')\n\n #From XML input\n fleur_inp = FleurInput.from_file('inp.xml')\n\n #The object has the following attributes\n print(fleur_inp.structure) #Associated structure\n print(fleur_inp.title) #Optional title string\n print(fleur_inp.lapw_parameters) #dict with additional LAPW parameters\n\nWriting inpgen input back out\n\n.. code-block:: python\n\n fleur_inp.write_file('inp_new')\n\n #Adding some additional LAPW parameters\n fleur_inp.write_file('inp_new', parameters={'comp': {'kmax': 4.5}})\n\nUsage from pymatgen ``Structure`` object\n\n.. code-block:: python\n\n from pymatgen.core import Structure\n\n #inpgen input (filename starts with inp_)\n s = Structure.from_file('inp_test')\n\n #XML input (filename is of the form inp*.xml)\n s = Structure.from_file('inp.xml')\n\n s.to('inp_example',format='fleur-inpgen')\n\n\nLicense\n++++++++\n\n*pymatgen-io-fleur* is distributed under the terms and conditions of the MIT license.\n\n.. |MIT license| image:: https://img.shields.io/badge/license-MIT-blue.svg\n :target: LICENSE\n.. |GitHub version| image:: https://img.shields.io/github/v/tag/JuDFTTeam/pymatgen-io-fleur?include_prereleases&label=GitHub%20version&logo=GitHub\n :target: https://github.com/JuDFTteam/pymatgen-io-fleur/releases\n.. |PyPI version| image:: https://img.shields.io/pypi/v/pymatgen-io-fleur\n :target: https://pypi.org/project/pymatgen-io-fleur/\n.. |PyPI pyversion| image:: https://img.shields.io/pypi/pyversions/pymatgen-io-fleur\n :target: https://pypi.org/project/pymatgen-io-fleur/\n.. |Build status| image:: https://github.com/JuDFTteam/pymatgen-io-fleur/actions/workflows/testing.yml/badge.svg?branch=develop&event=push\n :target: https://github.com/JuDFTteam/pymatgen-io-fleur/actions\n.. |Coverage Status| image:: https://codecov.io/gh/JuDFTteam/pymatgen-io-fleur/branch/develop/graph/badge.svg\n :target: https://codecov.io/gh/JuDFTteam/pymatgen-io-fleur\n",
"bugtrack_url": null,
"license": null,
"summary": "A pymatgen add-on for IO for the fleur code.",
"version": "0.5.0",
"project_urls": {
"Home": "https://github.com/JuDFTteam/pymatgen-io-fleur",
"Source": "https://github.com/JuDFTteam/pymatgen-io-fleur"
},
"split_keywords": [
"pymatgen",
"fleur"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6807df56856e9b6725797becf871be9cd4579af6341d34b671c8ebbf9f23ff34",
"md5": "0006b414135a973968f86fe28c0f785d",
"sha256": "4022b19fc4f942d3c7379adace558b64a3adcb0206be935d6d133039b073d22f"
},
"downloads": -1,
"filename": "pymatgen_io_fleur-0.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0006b414135a973968f86fe28c0f785d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 8489,
"upload_time": "2023-05-05T12:24:56",
"upload_time_iso_8601": "2023-05-05T12:24:56.359324Z",
"url": "https://files.pythonhosted.org/packages/68/07/df56856e9b6725797becf871be9cd4579af6341d34b671c8ebbf9f23ff34/pymatgen_io_fleur-0.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d172c490c76005ee21250b53482999c255fd951dedf68fc5bcec128fb7caf7a9",
"md5": "c3ead391278e0203fcfc678e929e3cb4",
"sha256": "666ddca1c6d60d0be83c01eff25bc1e0c31872c5caf2c434b505d8088ee9f299"
},
"downloads": -1,
"filename": "pymatgen-io-fleur-0.5.0.tar.gz",
"has_sig": false,
"md5_digest": "c3ead391278e0203fcfc678e929e3cb4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 17009,
"upload_time": "2023-05-05T12:24:58",
"upload_time_iso_8601": "2023-05-05T12:24:58.195418Z",
"url": "https://files.pythonhosted.org/packages/d1/72/c490c76005ee21250b53482999c255fd951dedf68fc5bcec128fb7caf7a9/pymatgen-io-fleur-0.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-05 12:24:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "JuDFTteam",
"github_project": "pymatgen-io-fleur",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pymatgen-io-fleur"
}