Skip to content
Switch branches/tags
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

llspy-slm: Lattice Light Sheet SLM Pattern Generator

license_shield python_shield travis_shield

Copyright © 2017 Talley Lambert, Harvard Medical School.

llspy-slm is a simple python app for generating binary masks to drive the spatial light modulator (SLM) on Lattice Light Sheet microscopes. It can generate both square lattices and hex lattices, and includes the ability to automatically set various parameters such as wavelength dependent beam-spacing (fully manually control is also available). Additionally, there is a batch square lattice feature that can be used to generate a large number of parameter permutations easily.

See complete usage notes in the documentation.

LLSpy SLM Pattern Generator GUI


  • Compatible with Windows (tested on 7/10), Mac or Linux (tested on Ubuntu 16.04)
  • Python 3.7, 3.6, 3.5, or 2.7


  1. Install Anaconda

  2. Launch a terminal window (OS X, Linux), or Anaconda Prompt (Windows)

  3. Install llspy-slm (note: as of version 0.2.0, you now must install either pyside2 or pyqt explicitly):

    > conda create -n slmenv
    > conda activate slmenv
    > conda install -c talley -c conda-forge llspy-slm pyqt

    The create -n slmenv line creates a virtual environment. This is optional, but recommended as it easier to uninstall cleanly and prevents conflicts with any other python environments. If installing into a virtual environment, you must source the environment before proceeding, and each time before using llspy-slm.

  4. The gui can be launched with slmgen. You can create a bash script or batch file to autoload the environment and launch the program if desired.

    # Launch Anaconda Prompt and type...
    > conda activate slmenv
    # launch the gui
    > slmgen

See complete usage notes in the documentation.

Bug Reports, Feature requests, etc...

Pull requests are welcome!

To report a bug or request a feature, please submit an issue on github


SLM binary mask generator for Lattice Light Sheet microscopy




No packages published