Skip to content

Commit a3b6cda

Browse files
committed
v0.15.1
1 parent 0754718 commit a3b6cda

4 files changed

Lines changed: 19 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040
- id: trailing-whitespace
4141

4242
- repo: https://github.com/codespell-project/codespell
43-
rev: v2.4.0
43+
rev: v2.4.1
4444
hooks:
4545
- id: codespell
4646
stages: [pre-commit, commit-msg]
@@ -65,7 +65,7 @@ repos:
6565
exclude: ^(site/src/figs/.+\.svelte|data/wbm/20.+\..+|site/src/(routes|figs).+\.(yaml|json)|changelog.md)$
6666

6767
- repo: https://github.com/pre-commit/mirrors-eslint
68-
rev: v9.18.0
68+
rev: v9.19.0
6969
hooks:
7070
- id: eslint
7171
types: [file]

changelog.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@
22

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

5+
#### [v0.15.1](https://github.com/janosh/pymatviz/compare/v0.15.0...v0.15.1)
6+
7+
> 28 January 2025
8+
9+
- Remove hard-coded `gridsize` in `density_hexbin` [`#263`](https://github.com/janosh/pymatviz/pull/263)
10+
- structure_2d_plotly and structure_3d_plotly now support ase.Atoms and sequences of them on top of pymatgen.Structure [`#262`](https://github.com/janosh/pymatviz/pull/262)
11+
- add molecular dynamics attributes to Key enum [`4b55a40`](https://github.com/janosh/pymatviz/commit/4b55a400e639b696c25dc752a0a70c0e472740df)
12+
- better Key.unit formatting: replace unicode sup/superscripts with <sup>/<sub>+ASCII [`eb12217`](https://github.com/janosh/pymatviz/commit/eb122173df12cfcbcff1070a1a6177a581de248b)
13+
- bump ruff to 0.9 and auto-fix [`6989ba5`](https://github.com/janosh/pymatviz/commit/6989ba5496dcf5f699f3a64ef38dd33f65f3ac28)
14+
- calculate MACE-MPA-0 diatomic curves [`4dc5f1e`](https://github.com/janosh/pymatviz/commit/4dc5f1ee095d398089443a543519a386532d49c5)
15+
516
#### [v0.15.0](https://github.com/janosh/pymatviz/compare/v0.14.0...v0.15.0)
617

7-
> 20 December 2024
18+
> 21 December 2024
819
920
- Multi-line `ptable_scatter_plotly` [`#260`](https://github.com/janosh/pymatviz/pull/260)
1021
- Hetero-nuclear diatomics example with MACE [`#259`](https://github.com/janosh/pymatviz/pull/259)
@@ -18,7 +29,7 @@ All notable changes to this project will be documented in this file. Dates are d
1829
- Add `pymatviz.classify.confusion_matrix` [`#252`](https://github.com/janosh/pymatviz/pull/252)
1930
- Fix `phonon_bands` for band structures with different paths in k-space [`#250`](https://github.com/janosh/pymatviz/pull/250)
2031
- keys.yml add more related to electronic, mechanical, thermal, and magnetic properties [`f377d95`](https://github.com/janosh/pymatviz/commit/f377d95aea1127f39108aa8a796f9fac13857d59)
21-
- classify/curves_plotly.py show threshold on hover, add _add_no_skill_line helper [`77e765a`](https://github.com/janosh/pymatviz/commit/77e765a1b6fc44006e2b684e2a4a76f86f2b4c52)
32+
- classify/curves_plotly.py show threshold on hover, add_add_no_skill_line helper [`77e765a`](https://github.com/janosh/pymatviz/commit/77e765a1b6fc44006e2b684e2a4a76f86f2b4c52)
2233
- breaking: rename Key.cse to computed_structure_entry [`ab691bb`](https://github.com/janosh/pymatviz/commit/ab691bbfa9f42151a42bcc3a6b2e0a261820b8b6)
2334
- test_brillouin_zone_3d_trace_counts [`44353aa`](https://github.com/janosh/pymatviz/commit/44353aa5c02259ab82b1d42e1ac3ac9e02ef5a18)
2435

pymatviz/enums.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ class Key(StrEnum):
146146
def label(self) -> str:
147147
"""Label associated with the key."""
148148
label = _keys[self.value]["label"]
149-
if unit := _keys[self.value].get("unit"):
149+
unit = _keys[self.value].get("unit")
150+
# needlessly verbose to include "dimensionless" in label
151+
if unit and unit != "dimensionless":
150152
label += f" ({unit})"
151153
return label
152154

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.0"
3+
version = "0.15.1"
44
description = "A toolkit for visualizations in materials informatics"
55
authors = [{ name = "Janosh Riebesell", email = "janosh.riebesell@gmail.com" }]
66
readme = "readme.md"

0 commit comments

Comments
 (0)