Problem
In SpaceGroupParameters, self._makeConstraints() is only called in __iter__() which means the parameters will not be set up properly by:
sgpars = constrainAsSpaceGroup(phase, "Fm-3m")
The following lines are required
for par in sgpars.latpars:
pass # usually recipe.addVar(par)
for par in sgpars.adppars:
pass # usually recipe.addVar(par)
Proposed solution
Move self._makeConstraints() to __init__()
Problem
In
SpaceGroupParameters,self._makeConstraints()is only called in__iter__()which means the parameters will not be set up properly by:The following lines are required
Proposed solution
Move
self._makeConstraints()to__init__()