Skip to main content

Spatial light modulator in Python

Project description



Python code to use a spatial light modulator (SLM).

Main Features

  • support for the vortex and top-hat phase masks in stimulated emission depletion (STED) microscopy
  • aberration control via Zernike polynomials
  • support for multiple pupils over the same SLM window


The easiest way to install slmtools is to first install Anaconda for Python 3. After that, open an Anaconda Prompt, type pip install --user --upgrade slmtools and hit enter to install slmtools.

To start up the GUI, open Anaconda Prompt, type python -m slmtools.gui and hit enter.

Installation from the GitHub repository

To install slmtools in Windows, follow the steps below.

  • You should first install the following software requirements:
    • Anaconda for Python 3. This includes Python as well as some necessary scientific libraries.
    • Git. This is necessary for the automatic version numbering of this package. Also, make sure you choose Git from the command line and also 3rd-party software in Adjusting your PATH environment.
  • Clone this repository using Git. From any folder in File Explorer, right-click and hit Git Bash here. Paste git clone and hit enter. Do not use GitHub's Download ZIP button above, as the installation script will not work in that case.
  • Finally, double-click on install.bat.

To run the GUI, double-click on run.bat.

Project details

Download files

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

Files for slmtools, version 0.3.46
Filename, size File type Python version Upload date Hashes
Filename, size slmtools-0.3.46.tar.gz (21.6 kB) File type Source Python version None Upload date Hashes View
Filename, size slmtools-0.3.46-py3-none-any.whl (33.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page