24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1475  |  回复: 5
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

1xiaohua1

木虫 (正式写手)

[求助] 求一个 linux版本的p4vasp 已有1人参与

各位朋友,由于无法登录p4vasp官网,求一个   linux版本的p4vasp   1217467061@qq.com
回复此楼

» 猜你喜欢

活着,就要不停地做事
已阅   回复此楼   关注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的回帖
查看全部 6 个回答

1xiaohua1

木虫 (正式写手)

1217467061Q]@qq.com
活着,就要不停地做事
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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 331环境科学与工程求调剂 +3 熠然好运气 2026-03-27 3/150 2026-03-28 04:11 by fmesaito
[考研] 求调剂 +6 白QF 2026-03-21 7/350 2026-03-28 00:42 by 白QF
[考研] 张芳铭-中国农业大学-环境工程专硕-298 +3 手机用户 2026-03-26 3/150 2026-03-27 21:39 by lbsjt
[考研] 一志愿211院校 344分 东北农业大学生物学学硕,求调剂 +5 丶风雪夜归人丶 2026-03-26 8/400 2026-03-27 19:22 by 丶风雪夜归人丶
[考研] 一志愿 西北大学 总分282 英语一62 求调剂 +7 18419759900 2026-03-25 8/400 2026-03-27 16:38 by 18419759900
[考研] 材料与化工085600,总分304,本科有两篇sci参与,求调剂 +10 幸运的酱酱 2026-03-22 12/600 2026-03-27 16:08 by muchong357
[考研] 材料292调剂 +12 橘颂思美人 2026-03-23 12/600 2026-03-27 15:44 by caszguilin
[考研] 274求调剂 +17 顾九笙要谦虚 2026-03-24 23/1150 2026-03-27 15:16 by caszguilin
[考研] 求调剂323材料与化工 +7 1124361 2026-03-24 7/350 2026-03-27 10:22 by wangjy2002
[考研] 中国科学院深圳先进技术研究院-光纤传感课题组招生-中国科学院大学、深圳理工大学联培 +5 YangTyu1 2026-03-26 5/250 2026-03-26 18:27 by 猫咪猫咪呀
[考研] 材料科学与工程 317求调剂 +4 JKSOIID 2026-03-26 4/200 2026-03-26 15:58 by 不吃魚的貓
[考研] 297求调剂 +6 田洪有 2026-03-26 6/300 2026-03-26 15:55 by 不吃魚的貓
[考研] 081700 调剂 267分 +11 迷人的哈哈 2026-03-23 11/550 2026-03-26 15:41 by zzll406
[考研] 调剂310 +3 温柔的晚安 2026-03-25 4/200 2026-03-25 23:16 by peike
[考研] 332求调剂 +6 032500 2026-03-25 6/300 2026-03-25 22:45 by 418490947
[考研] 各位老师您好:本人初试372分 +5 jj涌77 2026-03-25 6/300 2026-03-25 14:15 by mapenggao
[考研] 0854人工智能方向招收调剂 +4 章小鱼567 2026-03-24 4/200 2026-03-25 13:29 by 2177681040
[考研] 318求调剂 +3 plum李子 2026-03-23 3/150 2026-03-25 09:42 by 雾散后相遇lc
[考研] 080500求调剂 +3 zzzzfan 2026-03-24 3/150 2026-03-24 16:38 by barlinike
[考研] 一志愿深大,0703化学,总分302,求调剂 +4 七月-七七 2026-03-21 4/200 2026-03-21 18:20 by 学员8dgXkO
信息提示
请填处理意见