Skip to main content

sasmodels package

Project description

Theory models for small angle scattering.

The models provided are usable directly in the bumps fitting package and in the sasview analysis package. If OpenCL is available, the models will run much faster. If not, then precompiled versions will be included with the distributed package. New models can be added if OpenCL or a C compiler is available.

Example

The example directory contains a radial+tangential data set for an oriented rod-like shape.

The data is loaded by sas.dataloader from the sasview package, so sasview is needed to run the example.

To run the example, you need sasview, sasmodels and bumps. Assuming these repositories are installed side by side, change to the sasmodels/example directory and enter:

PYTHONPATH=..:../../sasview/src ../../bumps/run.py fit.py \
    cylinder --preview

See bumps documentation for instructions on running the fit. With the python packages installed, e.g., into a virtual environment, then the python path need not be set, and the command would be:

bumps fit.py cylinder --preview

The fit.py model accepts up to two arguments. The first argument is the model type, which has been defined for cylinder, capped_cylinder, core_shell_cylinder, ellipsoid, triaxial_ellipsoid and lamellar. The second argument is view, which can be radial or tangential. To fit both radial and tangential simultaneously, use the word “both”.

Notes

cylinder.c + cylinder.py is the cylinder model with renamed variables and sld scaled by 1e6 so the numbers are nicer. The model name is “cylinder”

lamellar.py is an example of a single file model with embedded C code.

TravisStatus

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sasmodels-0.99.tar.gz (1.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sasmodels-0.99-py3.7.egg (877.8 kB view details)

Uploaded Egg

sasmodels-0.99-py3-none-any.whl (467.8 kB view details)

Uploaded Python 3

File details

Details for the file sasmodels-0.99.tar.gz.

File metadata

  • Download URL: sasmodels-0.99.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for sasmodels-0.99.tar.gz
Algorithm Hash digest
SHA256 07a243b6d2cfaa16d8b5ad6f22520aae78c9bfe971b79bf2ebbb5828f493a6e1
MD5 706e40f1dc24e0f12892ac1a0e3c8d5f
BLAKE2b-256 176947e27a22db34d7c3e2e2eb1915df71aebd30a7f97f0680207c86d2df406a

See more details on using hashes here.

File details

Details for the file sasmodels-0.99-py3.7.egg.

File metadata

  • Download URL: sasmodels-0.99-py3.7.egg
  • Upload date:
  • Size: 877.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for sasmodels-0.99-py3.7.egg
Algorithm Hash digest
SHA256 c0b3482a3148706522d05351ded7e4fa2509c1a0a87f8c91580b8168f12c3538
MD5 a718983a821cd1d98f5796b62640ff82
BLAKE2b-256 9a8b609a95d9f29fae0d7ce9091ad229cb913a2567710a139df54a046fe695bc

See more details on using hashes here.

File details

Details for the file sasmodels-0.99-py3-none-any.whl.

File metadata

  • Download URL: sasmodels-0.99-py3-none-any.whl
  • Upload date:
  • Size: 467.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for sasmodels-0.99-py3-none-any.whl
Algorithm Hash digest
SHA256 05c2f07c040e9cf0b20a61265dc19ffc1e2d32e8b0e21b99b19a6682cc3c85b1
MD5 e390b9040bb9d0badf2294cbd2838297
BLAKE2b-256 ed70df3c5a986dd4638f44fd7ee0413dea8d84af96f27c2de8df096d1c73021d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page