@@ -91,14 +91,14 @@ def makeRecipe(stru1, stru2, datname):
9191 # diameter to twice the shell radius.
9292 recipe .add_variable (contribution .radius , 15 )
9393 recipe .add_variable (contribution .thickness , 11 )
94- recipe .constrain (contribution .psize , "2 * radius" )
94+ recipe .constrain_parameter (contribution .psize , "2 * radius" )
9595
9696 # Configure the fit variables
9797 # Start by configuring the scale factor and resolution factors.
9898 # We want the sum of the phase scale factors to be 1.
9999 recipe .create_new_variable ("scale_CdS" , 0.7 )
100- recipe .constrain (generator_cds .scale , "scale_CdS" )
101- recipe .constrain (generator_zns .scale , "1 - scale_CdS" )
100+ recipe .constrain_parameter (generator_cds .scale , "scale_CdS" )
101+ recipe .constrain_parameter (generator_zns .scale , "1 - scale_CdS" )
102102 # We also want the resolution factor to be the same on each.
103103
104104 # Vary the global scale as well.
@@ -117,7 +117,7 @@ def makeRecipe(stru1, stru2, datname):
117117 )
118118 # Since we know these have stacking disorder, constrain the B33 adps for
119119 # each atom type.
120- recipe .constrain ("B33_1_cds" , "B33_0_cds" )
120+ recipe .constrain_parameter ("B33_1_cds" , "B33_0_cds" )
121121 recipe .add_variable (generator_cds .delta2 , name = "delta2_cds" , value = 5 )
122122
123123 phase_zns = generator_zns .phase
@@ -128,7 +128,7 @@ def makeRecipe(stru1, stru2, datname):
128128 recipe .add_variable (
129129 phase_zns .sgpars .xyzpars .z_1 , name = "z_1_zns" , tag = "xyz"
130130 )
131- recipe .constrain ("B33_1_zns" , "B33_0_zns" )
131+ recipe .constrain_parameter ("B33_1_zns" , "B33_0_zns" )
132132 recipe .add_variable (generator_zns .delta2 , name = "delta2_zns" , value = 2.5 )
133133
134134 # Give the recipe away so it can be used!
0 commit comments