Changeset b7e8b94 in sasmodels for sasmodels/models/cylinder.py


Ignore:
Timestamp:
Jan 11, 2017 7:20:03 AM (7 years ago)
Author:
richardh
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c, 8afefae, 7c2935c
Parents:
fcb33e4
Message:

correct sinTheta not cosTheta in new coord transform, resotres 2d unit tests in cylinder, core_shell_ellipsoid. Sort 1d tests in stacked_cylinder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/cylinder.py

    rfcb33e4 rb7e8b94  
    152152tests = [[{}, 0.2, 0.042761386790780453], 
    153153        [{}, [0.2], [0.042761386790780453]], 
    154 #  expect new      [{'theta':80.1534480601659, 'phi':10.1510817110481}, (qx, qy), 0.03514647218513852], 
    155 #         [{'theta':80.1534480601659, 'phi':10.1510817110481}, [(qx, qy)], [0.03514647218513852]], 
    156 # old, but calcs .0344268         [{'theta':10.0, 'phi':10.0}, (qx, qy), 0.03514647218513852], 
    157 #                       [{'theta':10.0, 'phi':10.0}, [(qx, qy)], [0.03514647218513852]], 
     154#  new coords     
     155        [{'theta':80.1534480601659, 'phi':10.1510817110481}, (qx, qy), 0.03514647218513852], 
     156        [{'theta':80.1534480601659, 'phi':10.1510817110481}, [(qx, qy)], [0.03514647218513852]], 
     157# old coords   [{'theta':10.0, 'phi':10.0}, (qx, qy), 0.03514647218513852], 
     158#              [{'theta':10.0, 'phi':10.0}, [(qx, qy)], [0.03514647218513852]], 
    158159        ] 
    159160del qx, qy  # not necessary to delete, but cleaner 
Note: See TracChangeset for help on using the changeset viewer.