Skip to content

Commit 9967e02

Browse files
author
znicholls
committed
bump: version 0.6.1a0 -> 0.6.1
1 parent 2bc589b commit 9967e02

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

changelog/53.fix.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/source/changelog.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,33 @@ of rst and use slightly different categories.
1919

2020
<!-- towncrier release notes start -->
2121

22+
## openscm-units v0.6.1 (2024-07-09)
23+
24+
25+
### Bug Fixes
26+
27+
- Fixed accidental aliasing of "yr" to "a".
28+
29+
We had accidentally assigned "yr" to be an alias for "a".
30+
This meant we had the following behaviour
31+
32+
```python
33+
>>> from openscm_units import unit_registry
34+
>>> val = unit_registry.Quantity(1, "yr")
35+
>>> val
36+
<Quantity(1, 'a')>
37+
```
38+
39+
This PR fixes this so that if you pass in "yr", it stays as yr i.e. you get
40+
41+
```python
42+
>>> from openscm_units import unit_registry
43+
>>> val = unit_registry.Quantity(1, "yr")
44+
>>> val
45+
<Quantity(1, 'yr')>
46+
``` ([#53](https://github.com/openscm/openscm-units/pulls/53))
47+
48+
2249
## openscm-units v0.6.0 (2024-06-15)
2350
2451

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 = "openscm-units"
3-
version = "0.6.1a0"
3+
version = "0.6.1"
44
description = "Handling of units related to simple climate modelling."
55
authors = [
66
"Zebedee Nicholls <zebedee.nicholls@climate-energy-college.org>",

0 commit comments

Comments
 (0)