Skip to content

Commit 73704f4

Browse files
committed
do linspace with odd number of points
1 parent 39178a6 commit 73704f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def build_recipe_one_contribution():
153153

154154
def _build_recipe():
155155
profile = Profile()
156-
x = linspace(0, pi, 10)
156+
x = linspace(0, pi, 11)
157157
y = sin(x)
158158
profile.set_observed_profile(x, y)
159159
contribution = FitContribution("c1")
@@ -174,7 +174,7 @@ def build_recipe_two_contributions():
174174
"""Helper to build a recipe with two physically related
175175
contributions."""
176176
profile1 = Profile()
177-
x = linspace(0, pi, 50)
177+
x = linspace(0, pi, 51)
178178
y1 = sin(x) # amplitude=1, freq=1
179179
profile1.set_observed_profile(x, y1)
180180

tests/test_fitresults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
Restraints 0.00000000
3939
Chi2 0.00000000
4040
Reduced Chi2 0.00000000
41-
Rw 0.00000007
41+
Rw 0.00000010
4242
4343
Variables (Uncertainties invalid)
4444
------------------------------------------------------------------------------

0 commit comments

Comments
 (0)