Skip to content

Commit 0d0c9c8

Browse files
committed
Update powder pattern indexing test. Fixes #35
1 parent 5f009ed commit 0d0c9c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pyobjcryst/tests/testpowderpattern.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ def test_peaklist_index(self):
167167
c = loadcifdata("paracetamol.cif")
168168
p = PowderPattern()
169169
p.SetWavelength(0.7)
170-
x = np.linspace(0, 40, 8001)
170+
x = np.linspace(0, 40, 16001)
171171
p.SetPowderPatternX(np.deg2rad(x))
172172
pd = p.AddPowderPatternDiffraction(c)
173-
pd.SetReflectionProfilePar(ReflectionProfileType.PROFILE_PSEUDO_VOIGT, 1e-6)
173+
pd.SetReflectionProfilePar(ReflectionProfileType.PROFILE_PSEUDO_VOIGT, 1e-7)
174174
# p.plot(hkl=True)
175175
calc = p.GetPowderPatternCalc()
176-
obs = np.random.poisson(calc * 1e5 / calc.max() + 50).astype(np.float64)
176+
obs = np.random.poisson(calc * 1e6 / calc.max() + 50).astype(np.float64)
177177
p.SetPowderPatternObs(obs)
178178
p.SetMaxSinThetaOvLambda(0.2)
179179
p.FitScaleFactorForIntegratedRw()

0 commit comments

Comments
 (0)