Skip to main content

A collection of utilities for analyzing SHG data.

Project description

ShgPy

DOI

ShgPy is a simple toolkit for analyzing rotational-anisotropy second harmonic generation (RA-SHG) data. It depends mainly on three packages, NumPy, SciPy, and SymPy -- as well as (optionally) Matplolib for some basic plotting capability -- to simulate, manipulate, and fit RA-SHG data in a (hopefully!) intuitive way.

Fitting RA-SHG data involves solving a complex global minimization problem with many degrees of freedom. Moreover, the fitting functions naively involve a degree of complexity due to the trigonometric nature of the problem. This software therefore takes a dual approach to fitting RA-SHG data -- first of all, all of the fits are done in Fourier space, which significantly reduces the complexity of the fitting formulas, and second of all, ShgPy makes heavy use of the scipy.optimize.basinhopping algorithm, which is particularly useful for these types of global optimization problems.

For more information, please see the tutorials and documentation.

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

shgpy-0.8.6.tar.gz (10.8 MB view details)

Uploaded Source

Built Distribution

shgpy-0.8.6-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

Details for the file shgpy-0.8.6.tar.gz.

File metadata

  • Download URL: shgpy-0.8.6.tar.gz
  • Upload date:
  • Size: 10.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for shgpy-0.8.6.tar.gz
Algorithm Hash digest
SHA256 24f0c70c364dbc272f1e5d71befa4313a4c82a93c03d0fb774cf93779e31cbb1
MD5 05cdc82ef947240721786846bfad6bda
BLAKE2b-256 8888042d65559b6048a9b9ed7455269b7c346ccf1869b90497001e5b35aa4518

See more details on using hashes here.

File details

Details for the file shgpy-0.8.6-py3-none-any.whl.

File metadata

  • Download URL: shgpy-0.8.6-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for shgpy-0.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 092de72d1d018a4ba461a06ecab692ef576499ad0e07996459fee34d25bd018c
MD5 8552d1723e80652ed107bbbc32b920b0
BLAKE2b-256 82a65ab9aa821ebd7a904ad51b1f15a0de1424e4952069c9c78697f98accc53f

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