pyAUSAXS API reference¶
This is the reference for every public function and class of pyAUSAXS. For an introduction, see the pyAUSAXS guides; for runnable scripts, the examples.
Everything is imported from the top-level module:
import pyausaxs as ausaxs
| Name | Description | Page |
|---|---|---|
create_molecule |
Read a structure, or create one from coordinate arrays | Molecules |
read_data, create_datafile |
Read a measured profile, or create one from arrays | Data and structure files |
read_pdb |
Read the records of a PDB or mmCIF file | Data and structure files |
Molecule.fit |
Fit a molecule to data | Fitting |
manual_fit |
Evaluate the fit model for parameters of your choice | Fitting |
settings, ExvModel, ExvTable |
Options of all calculations | Settings |
prepare_rigidbody_refinement, Rigidbody |
Run a rigid-body refinement script | Rigid-body refinement |
shape |
Scattering of homogeneous bodies | Utilities |
form_factor |
Look up atomic form factors and volumes | Utilities |
unoptimized |
The exact Debye sum, for testing | Utilities |
sasview |
The plain Debye sum on raw arrays | Utilities |
set_output_callback, reset_output_callback |
Redirect the messages of AUSAXS | Utilities |
advanced |
Manage the lifetime of the underlying C++ objects | Utilities |
Conventions¶
- Units. Lengths are in Å, and q in Å⁻¹, in both input and output.
- Arrays. Functions accept lists, tuples or NumPy arrays, and return NumPy arrays of
float64. - Errors. A failure in AUSAXS raises a
RuntimeErrorwith its message, e.g. for a file that cannot be read. - Settings are global. A change to
settingsapplies to every calculation after it, in every molecule, until it is changed again. - Version.
ausaxs.__version__is the version of the installed package.