Skip to content

Commit 53e15f8

Browse files
authored
Merge pull request #390 from OpenBioSim/backport_389
Backport fix from PR #389
2 parents 5be3db5 + df9422f commit 53e15f8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

doc/source/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ organisation on `GitHub <https://github.com/openbiosim/sire>`__.
2121

2222
* Fix ``delta`` parameter in soft-core Coulomb potential.
2323

24+
* Fix recursion bug in :func:`sire.base.wrap()` function.
25+
2426
`2025.3.0 <https://github.com/openbiosim/sire/compare/2025.2.0...2025.3.0>`__ - November 2025
2527
---------------------------------------------------------------------------------------------
2628

wrapper/Base/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def wrap(value):
3939
u = _Units.GeneralUnit(value)
4040

4141
if not u.is_dimensionless():
42-
return wrap(u)
42+
return _base_wrap(u)
4343
except Exception:
4444
pass
4545

0 commit comments

Comments
 (0)