2424from diffpy .pdfgui .control .constraint import Constraint
2525from diffpy .pdfgui .control .parameter import Parameter
2626from diffpy .pdfgui .control .controlerrors import ControlTypeError , ControlValueError
27- from diffpy .Structure import Atom
27+ from diffpy .structure import Atom
2828
2929class FitStructure (PDFStructure ):
3030 """FitStructure holds initial and refined structure and related fit
@@ -42,7 +42,7 @@ class FitStructure(PDFStructure):
4242 Use setSelectedPairs() and getSelectedPairs() methods
4343 to access its value.
4444 custom_spacegroup -- instance of SpaceGroup which has no equivalent
45- in diffpy.Structure.SpaceGroups module. This can happen
45+ in diffpy.structure.spacegroups module. This can happen
4646 after reading from a CIF file. When equivalent space
4747 group exists, custom_spacegroup is None.
4848
@@ -366,7 +366,7 @@ def isSpaceGroupPossible(self, spacegroup):
366366
367367 Return bool.
368368 """
369- from diffpy .Structure . SymmetryUtilities import isSpaceGroupLatPar
369+ from diffpy .structure . symmetryutilities import isSpaceGroupLatPar
370370 return isSpaceGroupLatPar (spacegroup , * self .initial .lattice .abcABG ())
371371
372372
@@ -376,7 +376,7 @@ def getSpaceGroupList(self):
376376 with custom_spacegroup.
377377 """
378378 if not FitStructure .sorted_standard_space_groups :
379- import diffpy .Structure . SpaceGroups as SG
379+ import diffpy .structure . spacegroups as SG
380380 existing_names = {}
381381 unique_named_list = []
382382 for sg in SG .SpaceGroupList :
@@ -400,7 +400,7 @@ def getSpaceGroup(self, sgname):
400400 Raise ValueError if sgname cannot be found or when it is not present
401401 in getSpaceGroupList().
402402 """
403- import diffpy .Structure . SpaceGroups as SG
403+ import diffpy .structure . spacegroups as SG
404404 # this should match the "CIF data" sgname
405405 sgmatch = [sg for sg in self .getSpaceGroupList ()
406406 if sg .short_name == sgname ]
@@ -420,11 +420,11 @@ def expandAsymmetricUnit(self, spacegroup, indices, sgoffset=[0,0,0]):
420420 of the occupancy("occ". Constraints of unaffected atoms are adjusted
421421 for new positions self.initial.
422422
423- spacegroup -- instance of Structure. SpaceGroup
423+ spacegroup -- instance of SpaceGroup from diffpy.structure
424424 indices -- list of integer indices of atoms to be expanded
425425 sgoffset -- optional offset of space group origin [0,0,0]
426426 """
427- from diffpy .Structure . SymmetryUtilities import ExpandAsymmetricUnit
427+ from diffpy .structure . symmetryutilities import ExpandAsymmetricUnit
428428 acd = self ._popAtomConstraints ()
429429 # get unique, reverse sorted indices
430430 ruindices = dict .fromkeys (indices ).keys ()
@@ -470,15 +470,15 @@ def applySymmetryConstraints(self, spacegroup, indices, posflag, Uijflag,
470470 erased. New parameter indices start at fist decade after the last
471471 used parameter.
472472
473- spacegroup -- instance of Structure. SpaceGroup
473+ spacegroup -- instance of SpaceGroup from diffpy.structure
474474 indices -- list of integer indices of atoms to be expanded
475475 posflag -- required bool flag for constraining positions
476476 Uijflag -- required bool flag for Uij constrainment
477477 sgoffset -- optional offset of space group origin [0,0,0]
478478 """
479479 if not posflag and not Uijflag : return
480480 # need to do something
481- from diffpy .Structure . SymmetryUtilities import SymmetryConstraints
481+ from diffpy .structure . symmetryutilities import SymmetryConstraints
482482 # get unique sorted indices
483483 tobeconstrained = dict .fromkeys (indices )
484484 uindices = tobeconstrained .keys ()
0 commit comments