Skip to content

Commit 2992f02

Browse files
committed
v0.16.0
1 parent 608a12f commit 2992f02

File tree

3 files changed

+53
-13
lines changed

3 files changed

+53
-13
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,16 @@ jobs:
1818
- name: Check out repo
1919
uses: actions/checkout@v4
2020

21-
- name: Set up Python
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version: "3.10"
21+
- name: Setup uv
22+
uses: astral-sh/setup-uv@v3
2523

26-
- name: Reinsert image URL prefix in README
24+
- name: Add readme image URL prefixes
25+
# needed to make images render on PyPI
2726
run: |
2827
sed -i -e 's| assets/| https://github.com/janosh/pymatviz/raw/main/assets/|g' readme.md
2928
30-
- name: Build and upload dist
31-
run: |
32-
pip install build twine
33-
python -m build
34-
twine check dist/* --strict
29+
- name: Build package with uv
30+
run: uv build
3531

36-
- name: Publish package distributions to PyPI
37-
uses: pypa/gh-action-pypi-publish@release/v1
32+
- name: Publish package distributions to PyPI with uv
33+
run: uv publish -t ${{ secrets.PYPI_TOKEN }}

changelog.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,50 @@
22

33
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
44

5+
#### [v0.16.0](https://github.com/janosh/pymatviz/compare/v0.15.1...v0.16.0)
6+
7+
> 2 May 2025
8+
9+
- Add `py-pkg-treemap()` [`#290`](https://github.com/janosh/pymatviz/pull/290)
10+
- Add `color_scale` param to allow for linear, logarithmic, arcsinh scaling of property values in `cluster_compositions` [`#288`](https://github.com/janosh/pymatviz/pull/288)
11+
- refactor cluster_compositions to take DataFrame as 1st arg, not composition list [`#287`](https://github.com/janosh/pymatviz/pull/287)
12+
- Test example scripts with `uv run` in CI [`#286`](https://github.com/janosh/pymatviz/pull/286)
13+
- New `cluster` module with functions for embedding, projecting and scattering compositions [`#285`](https://github.com/janosh/pymatviz/pull/285)
14+
- spacegroup_sunburst and chem_sys_sunburst: add keywords max_slices and max_slices_mode: other | none [`#284`](https://github.com/janosh/pymatviz/pull/284)
15+
- Multi-trace `plotly` powerups [`#283`](https://github.com/janosh/pymatviz/pull/283)
16+
- `brillouin_zone_3d` now supports multiple structures/atoms in customizable grid layouts [`#282`](https://github.com/janosh/pymatviz/pull/282)
17+
- Add `max_cells: int | None` keyword to `chem_sys_treemap` [`#281`](https://github.com/janosh/pymatviz/pull/281)
18+
- `structure_(2|3)d_plotly` enable gradient-colored bonds [`#280`](https://github.com/janosh/pymatviz/pull/280)
19+
- Auto font color for high contrast of element symbols in `ptable_heatmap_splits_plotly` [`#279`](https://github.com/janosh/pymatviz/pull/279)
20+
- Update `luminance` calculation to use WCAG 2.0 standard coefficients [`#278`](https://github.com/janosh/pymatviz/pull/278)
21+
- Fix `structure_2d_plotly` `rotation` keyword not applying to unit cell [`#276`](https://github.com/janosh/pymatviz/pull/276)
22+
- `spglib` to `moyo` [`#275`](https://github.com/janosh/pymatviz/pull/275)
23+
- fix bond drawing in structure_3d_plotly with better image atom handling [`#274`](https://github.com/janosh/pymatviz/pull/274)
24+
- Use SI suffix number format in ptable colorbar tick labels [`#273`](https://github.com/janosh/pymatviz/pull/273)
25+
- fix error in docstring [`#271`](https://github.com/janosh/pymatviz/pull/271)
26+
- Remove `matplotlib`-based periodic table plotting functions [`#270`](https://github.com/janosh/pymatviz/pull/270)
27+
- Ward metallic glasses train/val/test splits [`#269`](https://github.com/janosh/pymatviz/pull/269)
28+
- Codecov [`#268`](https://github.com/janosh/pymatviz/pull/268)
29+
- Support per-split colorbars and colorscales in `ptable_heatmap_splits_plotly()` [`#267`](https://github.com/janosh/pymatviz/pull/267)
30+
- add `enhance_parity_plot()` powerup [`#266`](https://github.com/janosh/pymatviz/pull/266)
31+
- add treemap.py with new chem_sys_treemap plot function [`#265`](https://github.com/janosh/pymatviz/pull/265)
32+
- add chem_sys_sunburst() to pymatviz/sunburst.py to visualize chemical system distributions [`#264`](https://github.com/janosh/pymatviz/pull/264)
33+
- test metallic glass feature engineering and model evaluation [`f0c5174`](https://github.com/janosh/pymatviz/commit/f0c517419cfb6bd9fafc8d09387474b119cb875e)
34+
- better colorbar tick formatting and spacing in density_scatter_plotly [`d1d51b4`](https://github.com/janosh/pymatviz/commit/d1d51b47eeba7a3cc200d27f5b363447807ea720)
35+
- RDF plotting hide legend for single structure [`dc8a1a2`](https://github.com/janosh/pymatviz/commit/dc8a1a2d53050a374eb819706d9864f409585960)
36+
- fix confusion_matrix() mismatch of false-positive/negative counts and heatmap color [`ae5b629`](https://github.com/janosh/pymatviz/commit/ae5b629b74d0273d01a1851cec86f5ef1e0641e3)
37+
- `contrast_ratio()` in `pymatviz/utils/plotting.py` to calculate color contrast according to WCAG 2.0 [`b7c30cf`](https://github.com/janosh/pymatviz/commit/b7c30cf4699f97c6b67c6e6a01e86c0cccd8286c)
38+
- Add script to fetch and update papers citing pymatviz (#277) [`6a2b831`](https://github.com/janosh/pymatviz/commit/6a2b8317757858f9b599e6a2362c8e365339dfac)
39+
- add examples/mlip_phonons.py [`608a12f`](https://github.com/janosh/pymatviz/commit/608a12f0d06f4623de84973a102057166d2f00ef)
40+
- clean up examples/diatomics/calc_mlip_diatomic_curves.py and support multiple ML models [`d6fe3d9`](https://github.com/janosh/pymatviz/commit/d6fe3d926606a1f87d6f7314c0b6ffb6b8d5bd85)
41+
- add examples/compare_elastic_constants.py testing MACE vs MP PBE [`2861298`](https://github.com/janosh/pymatviz/commit/2861298ef3176f87885a1329fdee760e4ce300d0)
42+
- Refactor ROC and PR curve no-skill line plotting [`6d68cc1`](https://github.com/janosh/pymatviz/commit/6d68cc174e7aea49863d29ac7ac997b48d5d6136)
43+
- `readme.md` add links to source and example code for each plot function [`65ccb7c`](https://github.com/janosh/pymatviz/commit/65ccb7cb5bda434321f939345b83bb4fbc4d81bd)
44+
- add assets/scripts/key_enum_table.py to visualize Key enum attributes with Plotly [`0598bb5`](https://github.com/janosh/pymatviz/commit/0598bb50b0a1ebb682a1b17f7e380877792c7072)
45+
- delete unused enums Model + ElemColorMode [`ee296bc`](https://github.com/janosh/pymatviz/commit/ee296bc7a588a481c39204db7db1f156cc749fd9)
46+
- fix ptable_heatmap_splits_plotly() incorrectly handling hide_f_block keyword resulting in missing tiles for Rf 104 through Og 118 [`b9ccbf0`](https://github.com/janosh/pymatviz/commit/b9ccbf0ee3017b066e16640e6749845aff7979c0)
47+
- force LabelEnums to have labels, gives .label type str causing less mypy headache [`a6825ff`](https://github.com/janosh/pymatviz/commit/a6825ff780416aec660510c295a1b958f68010eb)
48+
549
#### [v0.15.1](https://github.com/janosh/pymatviz/compare/v0.15.0...v0.15.1)
650

751
> 28 January 2025

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pymatviz"
3-
version = "0.15.1"
3+
version = "0.16.0"
44
description = "A toolkit for visualizations in materials informatics"
55
authors = [{ name = "Janosh Riebesell", email = "[email protected]" }]
66
readme = "readme.md"

0 commit comments

Comments
 (0)