@@ -154,6 +154,7 @@ def test_quick_fit(self):
154154 p .SetWavelength (0.7 )
155155 x = np .linspace (0 , 40 , 8001 )
156156 p .SetPowderPatternX (np .deg2rad (x ))
157+ p .SetPowderPatternObs (np .ones_like (x ))
157158 pd = p .AddPowderPatternDiffraction (c )
158159 pd .SetReflectionProfilePar (ReflectionProfileType .PROFILE_PSEUDO_VOIGT , 1e-6 )
159160 # p.plot(hkl=True)
@@ -169,6 +170,7 @@ def test_peaklist_index(self):
169170 p .SetWavelength (0.7 )
170171 x = np .linspace (0 , 40 , 16001 )
171172 p .SetPowderPatternX (np .deg2rad (x ))
173+ p .SetPowderPatternObs (np .ones_like (x ))
172174 pd = p .AddPowderPatternDiffraction (c )
173175 pd .SetReflectionProfilePar (ReflectionProfileType .PROFILE_PSEUDO_VOIGT , 1e-7 )
174176 # p.plot(hkl=True)
@@ -194,6 +196,7 @@ def test_spacegroup_explorer(self):
194196 p .SetWavelength (0.7 )
195197 x = np .linspace (0 , 40 , 8001 )
196198 p .SetPowderPatternX (np .deg2rad (x ))
199+ p .SetPowderPatternObs (np .ones_like (x ))
197200 pd = p .AddPowderPatternDiffraction (c )
198201 pd .SetReflectionProfilePar (ReflectionProfileType .PROFILE_PSEUDO_VOIGT , 1e-6 , 0 , 0 , 0 , 0 )
199202 # p.plot(hkl=True)
@@ -224,6 +227,7 @@ def test_update_nbrefl(self):
224227 p .SetWavelength (1.5 )
225228 x = np .linspace (0 , 40 , 4000 )
226229 p .SetPowderPatternX (np .deg2rad (x ))
230+ p .SetPowderPatternObs (np .ones_like (x ))
227231 pd = p .AddPowderPatternDiffraction (c )
228232 p .GetPowderPatternCalc ()
229233 self .assertEqual (pd .GetNbRefl (), 89 )
0 commit comments