Skip to content

Commit

Permalink
add test with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
dehoni committed Sep 23, 2024
1 parent f424e94 commit 52f6906
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions sasmodels/models/micromagnetic_FF_3D.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ Calculate_Scattering(double q, double cos_theta, double sin_theta, double radius
form += weights[xs] * sld[xs] * sld[xs];
}
}
total_F2 += GAUSS_W[i] * form ;
return total_F2;
total_F2 += GAUSS_W[i] * form ;
}
return total_F2;
}


Expand Down
12 changes: 4 additions & 8 deletions sasmodels/models/micromagnetic_FF_3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,7 @@ def random():




# tests = [
# [{'radius': 20.0, 'thickness': 10.0}, 0.1, None, None, 30.0, 4.*pi/3*30**3, 1.0],

# # The SasView test result was 0.00169, with a background of 0.001
# [{'radius': 60.0, 'thickness': 10.0, 'sld_core': 1.0, 'sld_shell': 2.0,
# 'sld_solvent': 3.0, 'background': 0.0}, 0.4, 0.000698838],
# ]
tests = [
[{},1.002266990452620e-03, 7.461046163627724e+03],
[{},(0.0688124, -0.0261013), 22.024],
]

0 comments on commit 52f6906

Please sign in to comment.