@@ -154,6 +154,7 @@ def test_quick_fit(self):
154
154
p .SetWavelength (0.7 )
155
155
x = np .linspace (0 , 40 , 8001 )
156
156
p .SetPowderPatternX (np .deg2rad (x ))
157
+ p .SetPowderPatternObs (np .ones_like (x ))
157
158
pd = p .AddPowderPatternDiffraction (c )
158
159
pd .SetReflectionProfilePar (ReflectionProfileType .PROFILE_PSEUDO_VOIGT , 1e-6 )
159
160
# p.plot(hkl=True)
@@ -169,6 +170,7 @@ def test_peaklist_index(self):
169
170
p .SetWavelength (0.7 )
170
171
x = np .linspace (0 , 40 , 16001 )
171
172
p .SetPowderPatternX (np .deg2rad (x ))
173
+ p .SetPowderPatternObs (np .ones_like (x ))
172
174
pd = p .AddPowderPatternDiffraction (c )
173
175
pd .SetReflectionProfilePar (ReflectionProfileType .PROFILE_PSEUDO_VOIGT , 1e-7 )
174
176
# p.plot(hkl=True)
@@ -194,6 +196,7 @@ def test_spacegroup_explorer(self):
194
196
p .SetWavelength (0.7 )
195
197
x = np .linspace (0 , 40 , 8001 )
196
198
p .SetPowderPatternX (np .deg2rad (x ))
199
+ p .SetPowderPatternObs (np .ones_like (x ))
197
200
pd = p .AddPowderPatternDiffraction (c )
198
201
pd .SetReflectionProfilePar (ReflectionProfileType .PROFILE_PSEUDO_VOIGT , 1e-6 , 0 , 0 , 0 , 0 )
199
202
# p.plot(hkl=True)
@@ -224,6 +227,7 @@ def test_update_nbrefl(self):
224
227
p .SetWavelength (1.5 )
225
228
x = np .linspace (0 , 40 , 4000 )
226
229
p .SetPowderPatternX (np .deg2rad (x ))
230
+ p .SetPowderPatternObs (np .ones_like (x ))
227
231
pd = p .AddPowderPatternDiffraction (c )
228
232
p .GetPowderPatternCalc ()
229
233
self .assertEqual (pd .GetNbRefl (), 89 )
0 commit comments