Skip to main content

LCG: GUI for LEED Device and CCD-camera Control

This project is a graphical user interface (GUI) designed to control a SPECS ErLEED digital controller and a CCD-camera from The Imaging Source.

The application allows users to manage settings of the camera and the ErLEED.

Thereby, the user is able to get camera and ErLEED device state, to capture images, change several camera properties (e.g. brightness, gain, and exposure time) and set the kinetic energy of the LEED electrons. The program includes the possibility to record I(V)-series.

This application is divided into three parts:

  1. The main GUI, which is started running gui.py
  2. The LEEDDevice class, which handles all the communication with the ErLEED device,
  3. And the `CameraDevice class, which handles the camera.

The CameraDevice as well as the LEEDDevice class could be used independently in other projects.

Installation

Prerequisites

The code was written and tested using Python 3.10.12, however it should run on other Python 3.xx.xx as well.

Please make sure, that your installation contains all the following packages:

opencv-python>=4.8.1.78
Pillow>=9.0.1
numpy>=1.26.2
toml>=0.10.2

Program was tested using the given versions, probably will work with some older versions too.

Install requirements e.g. using:

pip install -r requirements.txt

Steps to install LCG

  1. Clone this repository.
  2. Install Python (if not already installed).
  3. Install required Python libraries using pip install -r requirements.txt.
  4. Inside the cloned folder, run python gui.py to start the application.

Usage

Launch the application by running gui.py. Main GUI window

The main window holds in the upper half on the left the livefeed of the choosen camera. On the right side of the upper half, the last saved image will be displayed.

Use the buttons to perform specific actions like setting energy levels, capturing images, and recording I(V)-image series. Status of the LEED device as wel as of the camera feed are displayed as well.

TODO: explain I(V) handling as well as calibration curve.

By pressing Òpen Settings, the settings window will appear, where you are able to manipulate camera settings as well as generate a gain calibration curve for I(V) image series. In addition, arbitrary commands to the ErLEED could be send here too. Settings window

Configuration

In the config.tomlfile, several configuration properties are available:

TODO: List properties and explain handling of config file

Contributing

Contributions to this project are welcome! Please fork the repository, make changes, and submit pull requests. Bug reports, feature requests, and feedback are appreciated.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

Contributors: Julian Hochhaus

Metadata

Release files for leedcameragui 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for leedcameragui 0.4.2
File Size Uploaded Provenance Actions
leedcameragui-0.4.2.tar.gz 3.3 kB Without provenance Details for leedcameragui-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for leedcameragui 0.4.2
File Interpreter ABI Platform Actions
leedcameragui-0.4.2-py3-none-any.whl Python 3 none any Details for leedcameragui-0.4.2-py3-none-any.whl

Total release size: 7.3 kB

Release files / leedcameragui-0.4.2.tar.gz

Download URL leedcameragui-0.4.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4b08a588ddb657901095de22c8f9ed3d4e4507ad944f1b9156710494139460d4
BLAKE2b-256 checksum
How to use checksums
bf64877f97b71545b68110ee61d4287f87195cd60a44a48e6ce54a7b8dcd1734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / leedcameragui-0.4.2-py3-none-any.whl

Download URL leedcameragui-0.4.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75fc910d0f0d33ed87296c22ac4beac4ef4300170ec255b31285e4ebdf6876dc
BLAKE2b-256 checksum
How to use checksums
22a404e4a88f43d7ce549a0d7f31ad415fdd05fa8d87c0cb1cd950c1b7a23454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for leedcameragui 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page