Skip to content

Commit c10cb39

Browse files
build: release py4vasp.0.10 (#177)
* Bump version number * Update documentation * Update VASP colors * Update numpy types for numpy 2.0
1 parent ac58bf6 commit c10cb39

24 files changed

Lines changed: 72 additions & 52 deletions

.github/workflows/test_full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
shell: bash -el {0}
3737
run: |
3838
conda info
39-
conda install -q -c conda-forge mdtraj
39+
conda install -q -c conda-forge "mdtraj<1.10.2"
4040
- name: Test with pytest
4141
shell: bash -el {0}
4242
run: |

core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "py4vasp-core"
3-
version = "0.9.0"
3+
version = "0.10.0"
44
description = "Tool for assisting with the analysis and setup of VASP calculations."
55
authors = [
66
"VASP Software GmbH <py4vasp@vasp.at>",

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = "VASP Software GmbH"
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = "0.9.0"
25+
release = "0.10.0"
2626

2727

2828
# -- General configuration ---------------------------------------------------

docs/convert.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ latest:
44
- dirhtml/_packages/py4vasp.calculation
55
- dirhtml/_classes/py4vasp.Calculation
66
- dirhtml/_packages/py4vasp.calculation.*
7-
- raw:
8-
- dirhtml/raw
9-
- dirhtml/api/py4vasp.raw.*
107
- exception:
118
- dirhtml/exception
129
- dirhtml/api/py4vasp.exception.*

docs/index.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,7 @@ You can then install *py4vasp* from PyPI_ using the pip package installer
2828
2929
pip install py4vasp
3030
31-
This will automatically download *py4vasp* as well as most of the required dependencies.
32-
However, we do not install the *mdtraj* dependency by default because it does not
33-
reliably work with pip. We recommend to install *mdtraj* using conda
34-
35-
.. code-block:: bash
36-
37-
conda install -c conda-forge mdtraj
38-
39-
if you need the features that depend on it (plotting a trajectory of structures).
31+
This will automatically download *py4vasp* and its required dependencies.
4032

4133
For a minimalistic setup where you use py4vasp as a library, you can install the
4234
core package
@@ -59,7 +51,6 @@ the next VASP version is released.
5951
git clone https://github.com/vasp-dev/py4vasp.git
6052
cd py4vasp
6153
pip install .
62-
conda install -c conda-forge mdtraj
6354
6455
If these commands succeed, you should be able to use *py4vasp*. You can make a quick
6556
test of your installation running the following command
@@ -153,6 +144,7 @@ how you can apply *py4vasp* in your research.
153144
:recursive:
154145

155146
calculation
147+
exception
156148

157149
.. rubric:: Classes
158150

@@ -162,6 +154,14 @@ how you can apply *py4vasp* in your research.
162154

163155
Calculation
164156

157+
158+
Optional dependencies
159+
---------------------
160+
You can install mdtraj if you want to analyze molecular dynamics trajectories
161+
beyond the pair correlation function. We recommend using conda for the installation
162+
which we found to be more robust than pip.
163+
164+
165165
----------------------------------------------------------------------------------------
166166

167167
.. _venv: https://docs.python.org/3/tutorial/venv.html

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "py4vasp"
3-
version = "0.9.0"
3+
version = "0.10.0"
44
description = "Tool for assisting with the analysis and setup of VASP calculations."
55
authors = [
66
"VASP Software GmbH <py4vasp@vasp.at>",

src/py4vasp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
from py4vasp._third_party.interactive import set_error_handling
77
from py4vasp.calculation._class import Calculation
88

9-
__version__ = "0.9.0"
9+
__version__ = "0.10.0"
1010
set_error_handling("Minimal")

src/py4vasp/_config.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# Copyright © VASP Software GmbH,
22
# Licensed under the Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
3-
VASP_COLORS = ("#4C265F", "#2FB5AB", "#2C68FC", "#A82C35", "#808080", "#212529")
4-
VASP_PURPLE, VASP_CYAN, VASP_BLUE, VASP_RED, VASP_GRAY, VASP_DARK = VASP_COLORS
3+
VASP_COLORS = {
4+
"purple": "#8342A4",
5+
"cyan": "#35CABF",
6+
"blue": "#3E70EA",
7+
"red": "#A82C35",
8+
"gray": "#424242",
9+
"dark": "#202429",
10+
"green": "#89AD01",
11+
}

src/py4vasp/_third_party/graph/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
33
import copy
44

5-
from py4vasp._config import VASP_BLUE, VASP_COLORS, VASP_GRAY, VASP_RED
5+
from py4vasp._config import VASP_COLORS
66
from py4vasp._util import import_
77

88
from .contour import Contour
@@ -17,9 +17,13 @@
1717
if import_.is_imported(go) and import_.is_imported(pio):
1818
axis_format = {"showexponent": "all", "exponentformat": "power"}
1919
contour = copy.copy(pio.templates["ggplot2"].data.contour[0])
20-
contour.colorscale = [[0, VASP_BLUE], [0.5, VASP_GRAY], [1, VASP_RED]]
20+
begin_blue = [0, VASP_COLORS["blue"]]
21+
middle_gray = [0.5, VASP_COLORS["gray"]]
22+
end_red = [1, VASP_COLORS["red"]]
23+
contour.colorscale = [begin_blue, middle_gray, end_red]
2124
data = {"contour": (contour,)}
22-
layout = {"colorway": VASP_COLORS, "xaxis": axis_format, "yaxis": axis_format}
25+
colorway = list(VASP_COLORS.values())
26+
layout = {"colorway": colorway, "xaxis": axis_format, "yaxis": axis_format}
2327
pio.templates["vasp"] = go.layout.Template(data=data, layout=layout)
2428
pio.templates["ggplot2"].layout.shapedefaults = {}
2529
pio.templates.default = "ggplot2+vasp"

src/py4vasp/_third_party/graph/contour.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ def _create_unit_cell(self):
144144
corners = (vectors[0], vectors[0] + vectors[1], vectors[1])
145145
to_corners = (f"L {pos_to_str(corner)}" for corner in corners)
146146
path = f"M 0 0 {' '.join(to_corners)} Z"
147-
unit_cell = {"type": "path", "line": {"color": _config.VASP_DARK}, "path": path}
147+
color = _config.VASP_COLORS["dark"]
148+
unit_cell = {"type": "path", "line": {"color": color}, "path": path}
148149
return (unit_cell,)
149150

150151
def _label_unit_cell_vectors(self):

0 commit comments

Comments
 (0)