Skip to content

Commit 851a7bb

Browse files
committed
changed maicos to scatterkit in examples
1 parent 4179706 commit 851a7bb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

examples/saxs.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import MDAnalysis as mda
2525
from MDAnalysis.analysis.rdf import InterRDF
2626

27-
import maicos
28-
from maicos.lib.math import atomic_form_factor, rdf_structure_factor
27+
from scatterkit.lib.math import atomic_form_factor, rdf_structure_factor
28+
import scatterkit
2929

3030
# %%
3131
# The `water` system consists of 510 water molecules in the liquid state. The
@@ -47,10 +47,10 @@
4747
# Extract small angle x-ray scattering (SAXS) intensities
4848
# -------------------------------------------------------
4949
#
50-
# Let us use the :class:`maicos.Saxs` class of MAICoS and apply it to all atoms in the
50+
# Let us use the :class:`scatterkit.Saxs` class of MAICoS and apply it to all atoms in the
5151
# system:
5252

53-
saxs = maicos.Saxs(u.atoms).run(stop=30)
53+
saxs = scatterkit.Saxs(u.atoms).run(stop=30)
5454

5555
# %%
5656
# .. Note::
@@ -109,13 +109,13 @@
109109
# contributions individually. Let us calculate both oxygen and hydrogen contributions,
110110
# respectively:
111111

112-
saxs_O = maicos.Saxs(group_O).run(stop=30)
113-
saxs_H = maicos.Saxs(group_H).run(stop=30)
112+
saxs_O = scatterkit.Saxs(group_O).run(stop=30)
113+
saxs_H = scatterkit.Saxs(group_H).run(stop=30)
114114

115115
# %%
116116
# Let us plot the results for the structure factor, the squared atomic form factor as
117117
# well scattering intensities together. For computing the atomic form factor we will use
118-
# :func:`maicos.lib.math.atomic_form_factor`. Note that for the ``structure_factors``
118+
# :func:`scatterkit.lib.math.atomic_form_factor`. Note that for the ``structure_factors``
119119
# and the ``scattering_intensities` we access the results directly from the ``results``
120120
# attribute without storing them in individual variables as before:
121121

@@ -192,7 +192,7 @@
192192
# %%
193193
# We use ``exclude_same="residue"`` to exclude atomic self contributions resulting in a
194194
# large peak at 0. Next, we convert the RDF into a structure factor using
195-
# :func:`maicos.lib.math.rdf_structure_factor` and the number density of the
195+
# :func:`scatterkit.lib.math.rdf_structure_factor` and the number density of the
196196
# oxygens.
197197

198198
density = group_O.n_atoms / u.trajectory.ts.volume

0 commit comments

Comments
 (0)