From e778bc5aa24e09f54ee3cf1adb4bd4a6e2ec8a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=CC=8Akon=20Wiik=20A=CC=8Anes?= Date: Wed, 10 Jun 2026 22:48:02 +0200 Subject: [PATCH] Replace internal use of deprecated function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Håkon Wiik Ånes --- src/diffpy/structure/symmetryutilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diffpy/structure/symmetryutilities.py b/src/diffpy/structure/symmetryutilities.py index 5e744fb..63ef5f1 100644 --- a/src/diffpy/structure/symmetryutilities.py +++ b/src/diffpy/structure/symmetryutilities.py @@ -601,7 +601,7 @@ def __init__( self.pparameters = [] self.Uparameters = [] # fill in the values - sites, ops, mult = expandPosition(spacegroup, xyz, sgoffset, eps) + sites, ops, mult = expand_position(spacegroup, xyz, sgoffset, eps) invariants = _find_invariants(ops) # shift self.xyz exactly to the special position if mult > 1: @@ -612,7 +612,7 @@ def __init__( if numpy.any(dxyz != 0.0): self.xyz = xyz + dxyz self.xyz[numpy.fabs(self.xyz) < self.eps] = 0.0 - sites, ops, mult = expandPosition(spacegroup, self.xyz, self.sgoffset, eps) + sites, ops, mult = expand_position(spacegroup, self.xyz, self.sgoffset, eps) invariants = _find_invariants(ops) # self.xyz, sites, ops are all adjusted here self.eqxyz = sites