Skip to main content

Light scattering code using T-Matrix

Project description

DeepSource Codacy Badge License: MIT Unit tests Docs PYPI

Yet Another Scattering Framework

YASF is a T-Matrix implementation in Python based on the Matlab framework CELES developed by Egel et al..

Install

pip

pip install yasfpy

Sadly yasf was already taken, so the package is called yasfpy for the Python version and can be found on pypi.

conda

To run code on the GPU, the cudetoolkit is needed. This can be installed using a provided package by nvidia, or by using the conda package as described by the numba docs. The repository provides a yaml environment file. To spin an environment up (and update it later on), use:

conda env create -f yasf-env.yml # install
conda env update -f yasf-env.yml # update the environment (deactivate and activate again for changes to apply)

Examples

  • Small dashboard displaying various parameters calculated using YASF

Development

This repository is still under development!

Documentation

The code is documented using MkDocs. If you discover mistakes, feel free to create a pull request or open up an issue.

TODO

The pywigxjpf package is not following PEP 517 and PEP 518 standards, so it may happen, that it won't install properly as a dependency of YASF. Please install it manually if that happens using pip install pywigxjpf (before that, run pip install pycparser as stated in their pypi page). One could convert the setup.py file to a pyproject.toml file. Providing pycparser as a dependency could also solve the known issue of having to preinstall it.

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

yasfpy-0.0.13.tar.gz (47.1 kB view details)

Uploaded Source

Built Distribution

yasfpy-0.0.13-py3-none-any.whl (56.5 kB view details)

Uploaded Python 3

File details

Details for the file yasfpy-0.0.13.tar.gz.

File metadata

  • Download URL: yasfpy-0.0.13.tar.gz
  • Upload date:
  • Size: 47.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1018-azure

File hashes

Hashes for yasfpy-0.0.13.tar.gz
Algorithm Hash digest
SHA256 c35b849b40fc0bbc4a7aaa6af0b29d851a15dc8770cb9902bab692e87e5d7034
MD5 5b5b455114d31220e547b6703b3eadef
BLAKE2b-256 61c1ae71c14315240b130761360e59581b7e18df7b89b10218c802afacbfd536

See more details on using hashes here.

File details

Details for the file yasfpy-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: yasfpy-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 56.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1018-azure

File hashes

Hashes for yasfpy-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 805229e12d83a12ce29d2b5c6324e4a7e0ee062f4667e27abee55fbb851db935
MD5 b54ac6dcab447caf9275cc6f0c2f7f86
BLAKE2b-256 a276b542587dde89939a7aecd565f634964024b727199d6e0ece164fc79bd981

See more details on using hashes here.

Supported by

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