| 查看: 1821 | 回复: 5 | ||
[求助]
求一个 linux版本的p4vasp 已有1人参与
|
| 各位朋友,由于无法登录p4vasp官网,求一个 linux版本的p4vasp 1217467061@qq.com |
» 猜你喜欢
一个有机合成实验室都需要哪些设备?
已经有6人回复
2026年国自然面上资助率
已经有20人回复
面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇!
已经有22人回复
微信指数没变化,科研之友没阅读
已经有18人回复
基础研究怎么拉横向,学校到款任务越来越多,难以完成 拉横向,都有哪些途径啊
已经有8人回复
HXDI做水性聚氨酯乳液,是不是特别容易出渣
已经有3人回复
系统今天又提示维护了,估计离放榜不远了
已经有15人回复
你们的时间戳变了吗
已经有4人回复
产物和副产物价值比较
已经有5人回复
时间戳他又来了
已经有17人回复


2楼2024-10-28 16:55:02
rlafite
至尊木虫 (正式写手)
- 应助: 199 (高中生)
- 金币: 11352.5
- 红花: 29
- 沙发: 1
- 帖子: 956
- 在线: 361.9小时
- 虫号: 4563202
- 注册: 2016-04-02
- 性别: GG
- 专业: 同步辐射技术及其应用
3楼2024-10-31 00:15:35

4楼2024-10-31 20:54:32
rlafite
至尊木虫 (正式写手)
- 应助: 199 (高中生)
- 金币: 11352.5
- 红花: 29
- 沙发: 1
- 帖子: 956
- 在线: 361.9小时
- 虫号: 4563202
- 注册: 2016-04-02
- 性别: GG
- 专业: 同步辐射技术及其应用
【答案】应助回帖
★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
1xiaohua1: 金币+50, ★★★★★最佳答案 2024-11-01 10:32:08
1xiaohua1: 金币+50, ★★★★★最佳答案 2024-11-01 10:32:08
|
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

6楼2024-11-01 10:32:20










回复此楼
1xiaohua1