Changeset 3fb9404 in sasmodels
- Timestamp:
- Jan 24, 2018 4:41:33 PM (7 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 49284e1, 4c8cf97
- Parents:
- 0d5a655 (diff), fefc185 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 4 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
appveyor.yml
r1258e32 rfefc185 4 4 # /E:ON and /V:ON options are not enabled in the batch script interpreter 5 5 # See: http://stackoverflow.com/a/13751649/163740 6 CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd" 6 # 2018-01-19 PAK: probably irrelevant now that we are using tinycc rather than msvc 7 #CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd" 7 8 8 9 # Workaround for https://github.com/conda/conda-build/issues/636 … … 22 23 - TARGET_ARCH: "x86" 23 24 CONDA_PY: "35" 24 PY_CONDITION: "python >=3.5 "25 PY_CONDITION: "python >=3.5,<3.6" 25 26 CONDA_INSTALL_LOCN: "C:\\Miniconda35" 26 27 - TARGET_ARCH: "x64" … … 34 35 - TARGET_ARCH: "x64" 35 36 CONDA_PY: "35" 36 PY_CONDITION: "python >=3.5 "37 PY_CONDITION: "python >=3.5,<3.6" 37 38 CONDA_INSTALL_LOCN: "C:\\Miniconda35-x64" 38 39 … … 43 44 44 45 install: 45 # Set the CONDA_NPY, although it has no impact on the actual build. We need this because of a test within conda-build. 46 # Set the CONDA_NPY, although it has no impact on the actual build. 47 # We need this because of a test within conda-build. 46 48 - cmd: set CONDA_NPY=19 47 49 48 50 # Remove cygwin (and therefore the git that comes with it). 49 - cmd: rmdir C:\cygwin /s /q 51 # 2018-01-19 PAK: irrelevant since we already pulled the repo 52 #- cmd: rmdir C:\cygwin /s /q 53 54 # Set the conda path; would be nice to do this 55 - cmd: path %CONDA_INSTALL_LOCN%\Scripts;%PATH% 50 56 51 57 # Use the pre-installed Miniconda for the desired arch … … 56 62 # so that we can update it. Then we remove it so that 57 63 # we can do a proper activation. 58 - cmd: set "OLDPATH=%PATH%"59 - cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%"60 64 - cmd: conda update --yes --quiet conda python 61 - cmd: set "PATH=%OLDPATH%"62 65 - cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat 63 64 - cmd: conda config --add channels conda-forge65 - cmd: conda config --set show_channel_urls true66 - cmd: conda update --yes --quiet conda67 - cmd: conda install --yes --quiet obvious-ci68 - cmd: conda install --yes --quiet numpy toolchain scipy cython cffi66 #- cmd: conda config --add channels conda-forge 67 #- cmd: conda config --set show_channel_urls true 68 #- cmd: conda install --yes --quiet obvious-ci 69 # 2018-01-19 PAK: skipping toolchain cython and cffi (these were for pyopencl?) 70 - cmd: conda install --yes --quiet numpy scipy 71 # 2018-01-19 PAK: skipping pyopencl; this would be needed for deploy but maybe not for test 69 72 #- cmd: conda install --yes --channel conda-forge pyopencl 73 # 2018-01-19 PAK: 3rd party packages might need msvc, so %CMD_IN_ENV% may be needed for pip 70 74 - cmd: pip install bumps unittest-xml-reporting tinycc 71 75 72 76 build_script: 73 77 # Build the project 74 - "%CMD_IN_ENV% python setup.py build" 78 # 2018-01-19 PAK: maybe need one of this if using msvc? 79 #- "%CMD_IN_ENV% python setup.py build" 80 #- cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd python setup.py build 81 - python setup.py build 75 82 76 83 test_script: 77 84 # Run the project tests 78 - "%CMD_IN_ENV% python -m sasmodels.model_test dll all" 85 # 2018-01-19 PAK: maybe need one of this if using msvc? 86 #- "%CMD_IN_ENV% python -m sasmodels.model_test dll all" 87 #- cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd python -m sasmoels.model_test dll all 88 - python -m sasmodels.model_test dll all -
doc/developer/overview.rst
r2a7e20e r0d5a655 190 190 *sasmodels.generate.PROJECTION*, with the default *PROJECTION=1* for 191 191 equirectangular and *PROJECTION=2* for sinusoidal. The more complicated 192 Guyou and Postel projections are not implemented. See explore.jitter.draw_mesh192 Guyou and Postel projections are not implemented. See jitter.draw_mesh 193 193 for details. 194 194 … … 274 274 code. 275 275 276 * explore/jitter.py* is for exploring different options for handling277 orientation and orientation dispersity. It uses * explore/guyou.py* to276 *sasmodels/jitter.py* is for exploring different options for handling 277 orientation and orientation dispersity. It uses *sasmodels/guyou.py* to 278 278 generate the Guyou projection. 279 279 -
doc/genapi.py
r706f466 r0d5a655 69 69 ('exception', 'Annotate exceptions'), 70 70 ('generate', 'Model parser'), 71 ('jitter', 'Orientation explorer'), 72 ('guyou', 'Guyou map projection'), 71 73 ('kernel', 'Evaluator type definitions'), 72 74 ('kernelcl', 'OpenCL model evaluator'), -
doc/guide/orientation/orientation.rst
r5fb0634 r0d5a655 52 52 yaw angle $\theta$ about the $b$-axis and pitch angle $\phi$ about the 53 53 $a$-axis. 54 55 You can explore the view and jitter angles interactively using 56 :func:`sasmodels.jitter.run`. Enter the following into the python 57 interpreter:: 58 59 from sasmodels import jitter 60 jitter.run() 54 61 55 62 More formally, starting with axes $a$-$b$-$c$ of the particle aligned -
sasmodels/jitter.py
r8cfb486 r0d5a655 1 1 #!/usr/bin/env python 2 2 """ 3 Application to explore the difference between sasview 3.x orientation 4 dispersity and possible replacement algorithms. 3 Jitter Explorer 4 =============== 5 6 Application to explore orientation angle and angular dispersity. 5 7 """ 6 8 from __future__ import division, print_function … … 124 126 def draw_parallelepiped(ax, size, view, jitter, steps=None, alpha=1): 125 127 """Draw a parallelepiped.""" 126 a, b,c = size128 a, b, c = size 127 129 x = a*np.array([ 1,-1, 1,-1, 1,-1, 1,-1]) 128 130 y = b*np.array([ 1, 1,-1,-1, 1, 1,-1,-1]) … … 141 143 x, y, z = transform_xyz(view, jitter, x, y, z) 142 144 ax.plot_trisurf(x, y, triangles=tri, Z=z, color='w', alpha=alpha) 145 146 # Draw pink face on box. 147 # Since I can't control face color, instead draw a thin box situated just 148 # in front of the "a+" face. 149 if 1: 150 x = a*np.array([ 1,-1, 1,-1, 1,-1, 1,-1]) 151 y = b*np.array([ 1, 1,-1,-1, 1, 1,-1,-1]) 152 z = c*np.array([ 1, 1, 1, 1,-1,-1,-1,-1]) 153 x, y, z = transform_xyz(view, jitter, abs(x)*1.05, y, z) 154 ax.plot_trisurf(x, y, triangles=tri, Z=z, color=[1,0.6,0.6], alpha=alpha) 143 155 144 156 draw_labels(ax, view, jitter, [ … … 608 620 Show an interactive orientation and jitter demo. 609 621 610 *model_name* is one of the models available in :func:`select_model`. 622 *model_name* is one of: sphere, cylinder, ellipsoid, parallelepiped, 623 triaxial_ellipsoid, or bcc_paracrystal. 624 625 *size* gives the dimensions (a, b, c) of the shape. 626 627 *dist* is the type of dispersition: gaussian, rectangle, or uniform. 628 629 *mesh* is the number of points in the dispersion mesh. 630 631 *projection* is the map projection to use for the mesh: equirectangular, 632 sinusoidal, guyou, azimuthal_equidistance, or azimuthal_equal_area. 611 633 """ 612 634 # projection number according to 1-order position in list, but
Note: See TracChangeset
for help on using the changeset viewer.