Changeset 990d8df in sasmodels
- Timestamp:
- May 7, 2017 9:20:44 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 2e66ef5
- Parents:
- 8ae8532
- Files:
-
- 9 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified doc/gentoc.py ¶
r8ae8532 r990d8df 98 98 struct_toc = _make_category( 99 99 'structure-factor', 'Structure-factor', 'Structure Factors') 100 custom_toc = _make_category(101 'custom-models', 'Custom-models', 'Custom Models')100 #custom_toc = _make_category( 101 # 'custom-models', 'Custom-models', 'Custom Models') 102 102 103 103 # remember to top level categories … … 107 107 'shape-independent':free_toc, 108 108 'structure-factor': struct_toc, 109 'custom': custom_toc,109 #'custom': custom_toc, 110 110 } 111 111 -
TabularUnified doc/guide/gpu/opencl_installation.rst ¶
r8ae8532 r990d8df 4 4 OpenCL Installation 5 5 ******************* 6 *Warning! GPU devices do not in general offer the same level of memory protection as CPU devices. If your code attempts to write outside allocated memory buffers unpredicatable behaviour may result (eg, your video display may freeze, or your system may crash, etc). Do not install OpenCL drivers without first checking for known issues (eg, some computer manufacturers install modified graphics drivers so replacing these may not be a good idea!). If in doubt, seek advice from an IT professional before proceeding further.* 6 *Warning! GPU devices do not in general offer the same level of memory 7 protection as CPU devices. If your code attempts to write outside allocated 8 memory buffers unpredicatable behaviour may result (eg, your video display 9 may freeze, or your system may crash, etc). Do not install OpenCL drivers 10 ithout first checking for known issues (eg, some computer manufacturers 11 install modified graphics drivers so replacing these may not be a good 12 idea!). If in doubt, seek advice from an IT professional before proceeding 13 further.* 7 14 8 15 1. Check if you have OpenCL already installed … … 25 32 Mac OSX 26 33 ....... 27 For OS X operating systems higher than 10.6 OpenCL is shipped along with the system. 34 For OS X operating systems higher than 10.6 OpenCL is shipped along with 35 the system. 28 36 29 However, OpenCL has had a rocky history on Macs. Apple provide a useful compatibility table at https://support.apple.com/en-us/HT202823 37 However, OpenCL has had a rocky history on Macs. Apple provide a useful 38 compatibility table at https://support.apple.com/en-us/HT202823 30 39 31 40 … … 44 53 ....... 45 54 N/A 46 47 You cannot download OpenCL driver updates for your Mac. They are packaged with the normal quarterly OS X updates from Apple. 55 56 You cannot download OpenCL driver updates for your Mac. They are packaged 57 with the normal quarterly OS X updates from Apple. 48 58 49 59 50 60 .. note:: 51 Intel provides OpenCL drivers for Intel processors at https://software.intel.com/en-us/articles/opencl-drivers 61 Intel provides OpenCL drivers for Intel processors at 62 https://software.intel.com/en-us/articles/opencl-drivers 52 63 These can sometimes make use of special vector instructions across multiple 53 64 processors, so it is worth installing if the GPU does not support double … … 55 66 or AMD. 56 67 57 68 58 69 .. note:: 59 70 This help document was last changed by Steve King, 08Oct2016 -
TabularUnified doc/guide/index.rst ¶
r8ae8532 r990d8df 8 8 9 9 intro.rst 10 gpu/gpu_computations.rst 11 gpu/opencl_installation.rst 10 install.rst 11 pd/polydispersity.rst 12 resolution.rst 12 13 magnetism/magnetism.rst 13 14 sesans/sans_to_sesans.rst 14 15 sesans/sesans_fitting.rst 16 plugin.rst 15 17 refs.rst -
TabularUnified doc/guide/magnetism/magnetism.rst ¶
r8ae8532 r990d8df 2 2 3 3 Polarisation/Magnetic Scattering 4 ================================ =======================4 ================================ 5 5 6 In earlier versions of SasView magnetic scattering was implemented in just five 7 (2D) models 8 9 * :ref:`sphere` 10 * :ref:`core-shell-sphere` 11 * :ref:`core-multi-shell` 12 * :ref:`cylinder` 13 * :ref:`parallelepiped` 14 15 From SasView 4.x it is implemented on most models in the 'shape' category. 16 17 In general, the scattering length density (SLD = $\beta$) in each region where the 18 SLD is uniform, is a combination of the nuclear and magnetic SLDs and, for polarised 19 neutrons, also depends on the spin states of the neutrons. 6 Models which define a scattering length density parameter can be evaluated 7 as magnetic models. In general, the scattering length density (SLD = 8 $\beta$) in each region where the SLD is uniform, is a combination of the 9 nuclear and magnetic SLDs and, for polarised neutrons, also depends on the 10 spin states of the neutrons. 20 11 21 12 For magnetic scattering, only the magnetization component $\mathbf{M_\perp}$ … … 98 89 .. note:: 99 90 This help document was last changed by Steve King, 02May2015 91 92 * Document History * 93 94 | 2017-05-08 Paul Kienzle -
TabularUnified sasmodels/resolution.py ¶
rb32caab r990d8df 437 437 .. math:: 438 438 439 \log \Delta q = (\log q_n - log q_1) / (n - 1)439 \log \Delta q = (\log q_n - \log q_1) / (n - 1) 440 440 441 441 From this we can compute the number of steps required to extend $q$ … … 451 451 452 452 n_\text{extend} = (n-1) (\log q_\text{max} - \log q_n) 453 / (\log q_n - log q_1)453 / (\log q_n - \log q_1) 454 454 """ 455 455 q = np.sort(q) … … 459 459 log_delta_q = log(10.) / points_per_decade 460 460 if q_min < q[0]: 461 if q_min < 0: q_min = q[0]*MINIMUM_ABSOLUTE_Q 461 if q_min < 0: 462 q_min = q[0]*MINIMUM_ABSOLUTE_Q 462 463 n_low = log_delta_q * (log(q[0])-log(q_min)) 463 464 q_low = np.logspace(log10(q_min), log10(q[0]), np.ceil(n_low)+1)[:-1] -
TabularUnified sasmodels/rst2html.py ¶
r8ae8532 r990d8df 211 211 sys.exit(app.exec_()) 212 212 213 def can_use_qt(): 214 """ 215 Return True if QWebView exists. 216 217 Checks first in PyQt5 then in PyQt4 218 """ 219 try: 220 from PyQt5.QtWebKitWidgets import QWebView 221 return True 222 except ImportError: 223 try: 224 from PyQt4.QtWebkit import QWebView 225 return True 226 except ImportError: 227 return False 228 213 229 def view_help(filename, qt=False): 214 230 import os 215 url="file:///"+os.path.abspath(filename).replace("\\","/") 231 232 if qt: 233 qt = can_use_qt() 234 235 url = "file:///"+os.path.abspath(filename).replace("\\", "/") 216 236 if filename.endswith('.rst'): 217 237 html = load_rst_as_html(filename)
Note: See TracChangeset
for help on using the changeset viewer.