²é¿´: 1373  |  »Ø¸´: 5

1xiaohua1

ľ³æ (ÕýʽдÊÖ)

[ÇóÖú] ÇóÒ»¸ö linux°æ±¾µÄp4vasp ÒÑÓÐ1È˲ÎÓë

¸÷λÅóÓÑ£¬ÓÉÓÚÎÞ·¨µÇ¼p4vasp¹ÙÍø£¬ÇóÒ»¸ö   linux°æ±¾µÄp4vasp   1217467061@qq.com
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

»î×Å£¬¾ÍÒª²»Í£µØ×öÊÂ
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

1xiaohua1

ľ³æ (ÕýʽдÊÖ)

»î×Å£¬¾ÍÒª²»Í£µØ×öÊÂ
2Â¥2024-10-28 16:55:02
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

rlafite

ľ³æ (ÕýʽдÊÖ)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
You can then install py4vasp from PyPI using the pip package installer
pip install py4vasp

» ±¾ÌûÒÑ»ñµÃµÄºì»¨£¨×îÐÂ10¶ä£©

3Â¥2024-10-31 00:15:35
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

1xiaohua1

ľ³æ (ÕýʽдÊÖ)

Ëͺ컨һ¶ä
ÒýÓûØÌû:
3Â¥: Originally posted by rlafite at 2024-10-31 00:15:35
You can then install py4vasp from PyPI using the pip package installer
pip install py4vasp

Õâ¸ö²»ÖªµÀʲôԭÒò£¬°²×°²»³É¹¦
»î×Å£¬¾ÍÒª²»Í£µØ×öÊÂ
4Â¥2024-10-31 20:54:32
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

rlafite

ľ³æ (ÕýʽдÊÖ)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
1xiaohua1: ½ð±Ò+50, ¡ï¡ï¡ï¡ï¡ï×î¼Ñ´ð°¸ 2024-11-01 10:32:08
ÒýÓûØÌû:
4Â¥: Originally posted by 1xiaohua1 at 2024-10-31 00:54:32
Õâ¸ö²»ÖªµÀʲôԭÒò£¬°²×°²»³É¹¦...

https://pypi.org/project/py4vasp/


Installation
We use the poetry dependency manager which takes care of all dependencies and maintains a virtual environment to check the code. If you want to test something in the virtual environment, just use e.g. poetry run jupyter-notebook.

We recommend installing py4vasp in a conda environment to resolve issues related to installing mdtraj with pip. To do this please use the following steps. The last step will test whether everything worked

conda create --name py4vasp-env python=3.8
git clone git@github.com:vasp-dev/py4vasp.git
pip install poetry
poetry install
conda install -c conda-forge mdtraj
poetry run pytest
Note that this will install py4vasp into the conda environment. This isolates the code from all packages you have installed in other conda environments. Using poetry makes sure that when you modify the code all the relevant dependencies are tracked.

py4vasp core
If you want to use py4vasp to develop your own scripts, you may want to limit the amount of external dependencies. To this end, we provide alternative configuration files that only install numpy, h5py, and the development dependencies. To install this core package replace the configurations files in the root folder with the ones in the core folder

cp core/* .
Then you can install py4vasp with the same steps as above. Alternatively, since py4vasp-core does not use mdtraj, you can also install everything in a virtual environment mangaged by poetry

pip install poetry
poetry install
poetry run pytest
Note that some tests will be skipped because they require the external packages to run. If you want to exclude even the development dependencies, you can run

poetry install --without dev
for the minimal installation.

Code style
Code style is enforced, but is not something the developer should spend time on, so we decided on using black and isort. Please run

black src tests
isort src tests
before committing the code. This will autoformat your code and sort the import statements in a consistent order. If you would like this code formatting to be done along with each commit, you can run

pre-commit install
Contributing to py4vasp
We welcome contributions to py4vasp. To improve the code please follow this workflow

Create an issue for the bugfix or feature you plan to work on, this gives the option to provide some input before work is invested.
Implement your work in a fork of the repository and create a pull request for it. Please make sure to test your code thoroughly and commit the tests in the pull request in the tests directory.
In the message to your merge request mention the issue the code attempts to solve.
We will try to include your merge request rapidly when all the tests pass and your code is covered by tests.
Please limit the size of a pull request to approximately 200 lines of code otherwise reviewing the changes gets unwieldy. Prefer splitting the work into multiple smaller chunks if necessary.

» ±¾ÌûÒÑ»ñµÃµÄºì»¨£¨×îÐÂ10¶ä£©

5Â¥2024-11-01 00:33:34
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

1xiaohua1

ľ³æ (ÕýʽдÊÖ)

Ëͺ컨һ¶ä
ÒýÓûØÌû:
5Â¥: Originally posted by rlafite at 2024-11-01 00:33:34
https://pypi.org/project/py4vasp/


Installation
We use the poetry dependency manager which takes care of all dependencies and maintains a virtual environment to check the code. If you want to t ...

лÀ²
»î×Å£¬¾ÍÒª²»Í£µØ×öÊÂ
6Â¥2024-11-01 10:32:20
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ 1xiaohua1 µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] Öпƴó²ÄÁÏ299Çóµ÷¼Á +9 DAIjiayo 2026-03-05 14/700 2026-03-07 22:13 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] 298Çóµ÷¼Á +4 fjj0912 2026-03-03 5/250 2026-03-07 20:29 by yxin_Z
[¿¼ÑÐ] Ò»Ö¾Ô¸211 085600 280Êý¶þÓ¢¶þÇóµ÷¼Á +3 ÔÂɽб 2026-03-06 3/150 2026-03-07 18:56 by houyaoxu
[¿¼ÑÐ] 289Çóµ÷¼Á +10 yangæÃ 2026-03-02 12/600 2026-03-07 17:34 by һͷ¿ªÐĵĸç˹À
[¿¼ÑÐ] 304Çóµ÷¼Á +4 52hz~~ 2026-03-05 5/250 2026-03-07 15:47 by lature00
[¿¼ÑÐ] 0703 ¶«»ª´óѧ Àíѧ»¯Ñ§¾ù¹ý a Ïߣ¬×Ü·Ö 281 Çóµ÷¼Á +6 ÏãÏã Lu 2026-03-03 11/550 2026-03-06 15:37 by @ìªìªìªìª
[¿¼ÑÐ] 085602 293·ÖÇóµ÷¼Á +3 SivanNano. 2026-03-05 3/150 2026-03-05 19:41 by caszguilin
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +4 L9370 2026-03-05 4/200 2026-03-05 19:36 by caszguilin
[¿¼ÑÐ] ·ÄÖ¯¡¢ÉúÎï¡¢»¯Ñ§¡¢²ÄÁϵÈרҵ +3 Eember. 2026-03-05 7/350 2026-03-05 16:35 by Eember.
[¿¼ÑÐ] 302²ÄÁϹ¤³ÌÇóµ÷¼Á +7 Doleres 2026-03-01 8/400 2026-03-05 09:59 by oxidpl
[¿¼ÑÐ] 070300»¯Ñ§ 280 һ־Ը̫ԭÀí¹¤ Çóµ÷¼Á +8 ʰ¾ÁÒ¼ 2026-03-04 8/400 2026-03-05 08:52 by anny19840123
[¿¼ÑÐ] »¯Ñ§¹¤³ÌÇóµ÷¼Á +10 »¯¹¤ÈË999 2026-03-04 10/500 2026-03-04 21:21 by zhukairuo
[¿¼ÑÐ] Ò»Ö¾Ô¸314Çóµ÷¼Á +7 202111120625 2026-03-03 7/350 2026-03-04 15:56 by zhukairuo
[¿¼ÑÐ] ²ÄÁϹ¤³Ì269Çóµ÷¼Á +7 °×´Ìõ 2026-03-02 7/350 2026-03-04 08:47 by zhyzzh
[¿¼ÑÐ] Àíѧ£¬¹¤Ñ§£¬Å©Ñ§µ÷¼Á£¬ÉÙ×ßÍä·£¬ÕâÀï»¶Ó­Äú£¡ +8 likeihood 2026-03-02 11/550 2026-03-03 19:39 by Ò»Ò¶·²³¾?
[¿¼ÑÐ] 267Çóµ÷¼Á +6 µöÓãÀÐas 2026-03-02 6/300 2026-03-03 13:59 by 13589
[¿¼ÑÐ] 307Çóµ÷¼Á +6 wyyyqx 2026-03-01 6/300 2026-03-03 09:24 by 2235787770
[¿¼ÑÐ] 0856»¯¹¤×¨Ë¶Çóµ÷¼Á +15 ¶­boxing 2026-03-01 15/750 2026-03-02 15:06 by »Î»Î²»Ðí»Î
[¿¼ÑÐ] 303Çóµ÷¼Á +5 ½ñÏIJ»ÏÄ 2026-03-01 5/250 2026-03-02 15:01 by ÏòÉϵÄÅÖ¶«
[¿¼ÑÐ] 291·Ö¹¤¿ÆÇóµ÷¼Á +9 science¶ö¶ö 2026-03-01 10/500 2026-03-01 18:55 by 18137688336
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û