|
10 | 10 | Small-angle X-ray scattering |
11 | 11 | ============================ |
12 | 12 |
|
13 | | -Small-angle X-ray scattering (SAXS) can be extracted using Scatterkit. To follow this how-to |
14 | | -guide, you should download the :download:`topology <water.tpr>` and the |
| 13 | +Small-angle X-ray scattering (SAXS) can be extracted using Scatterkit. To follow this |
| 14 | +how-to guide, you should download the :download:`topology <water.tpr>` and the |
15 | 15 | :download:`trajectory <water.trr>` files of the water system. |
16 | 16 |
|
17 | 17 | For more details on the theory see :ref:`saxs-explanations`. |
|
24 | 24 | import MDAnalysis as mda |
25 | 25 | from MDAnalysis.analysis.rdf import InterRDF |
26 | 26 |
|
27 | | -from scatterkit.lib.math import atomic_form_factor, rdf_structure_factor |
28 | 27 | import scatterkit |
| 28 | +from scatterkit.lib.math import atomic_form_factor, rdf_structure_factor |
29 | 29 |
|
30 | 30 | # %% |
31 | 31 | # The `water` system consists of 510 water molecules in the liquid state. The |
|
47 | 47 | # Extract small angle x-ray scattering (SAXS) intensities |
48 | 48 | # ------------------------------------------------------- |
49 | 49 | # |
50 | | -# Let us use the :class:`scatterkit.Saxs` class of Scatterkit and apply it to all atoms in the |
51 | | -# system: |
| 50 | +# Let us use the :class:`scatterkit.Saxs` class of Scatterkit and apply it to all atoms |
| 51 | +# in the system: |
52 | 52 |
|
53 | 53 | saxs = scatterkit.Saxs(u.atoms).run(stop=30) |
54 | 54 |
|
|
115 | 115 | # %% |
116 | 116 | # Let us plot the results for the structure factor, the squared atomic form factor as |
117 | 117 | # well scattering intensities together. For computing the atomic form factor we will use |
118 | | -# :func:`scatterkit.lib.math.atomic_form_factor`. Note that for the ``structure_factors`` |
119 | | -# and the ``scattering_intensities` we access the results directly from the ``results`` |
120 | | -# attribute without storing them in individual variables as before: |
| 118 | +# :func:`scatterkit.lib.math.atomic_form_factor`. Note that for the |
| 119 | +# ``structure_factors`` and the ``scattering_intensities` we access the results directly |
| 120 | +# from the ``results`` attribute without storing them in individual variables as before: |
121 | 121 |
|
122 | 122 | fig2, ax2 = plt.subplots(nrows=3, sharex=True, layout="constrained") |
123 | 123 |
|
|
0 commit comments