Skip to main content

The py4DSTEM GUI

This repository hosts the pyqt based graphical 4D--STEM data browser that was originally part of py4DSTEM until version 0.13.11.

Installation

The GUI is available on PyPI and conda-forge:

pip install py4D-browser

conda install -c conda-forge py4d-browser

Usage

Run py4DGUI in your terminal to open the GUI. Then just drag and drop a 4D-STEM dataset into the window!

Controls

  • Move the virtual detector and the real-space selector using the mouse or using the keyboard shortcuts: WASD moves the detector and IJKL moves the selector, and holding down shift moves 5 pixels at a time.
  • Auto scaling of both views is on by default. Press the "Autoscale" buttons in the bottom right to disable. Press either button to apply automatic scaling once, or Shift + click to lock autoscaling back on.
  • Different shapes of virtual detector are available in the "Detector Shape" menu, and different detector responses are available in the "Detector Response" menu.
  • The information in the bottom bar contains the details of the virtual detector used to generate the images, and can be entered into py4DSTEM to generate the same image.
  • The FFT pane can be switched between displaying the FFT of the virtual image and displaying the exit wave power cepstrum.
  • Virtual images can be exported either as the scaled and clipped displays shown in the GUI or as raw data. The exact datatype stored in the raw TIFF image depends on both the datatype of the dataset and the type of virtual image being displayed (in particular, integer datatypes are converted internally to floating point to prevent overflows when generating any synthesized virtual images).

Demonstration

The keyboard map in the Help menu was made using this tool and the map file is in the top level of this repo.

Plugins

As of version 1.3.0, we now support a simple means for loading plugins that extend the functionality of the browser. Details on creating a plugin can be found in this document.

The EMPAD-G2 Raw Reader, which was previously implemented in the browser code itself, is now implemented as a plugin, which can serve as an example.

About

py4DSTEM logo

py4DSTEM is an open source set of python tools for processing and analysis of four-dimensional scanning transmission electron microscopy (4D-STEM) data. Additional information:

License

GNU GPLv3

py4DSTEM is open source software distributed under a GPLv3 license. It is free to use, alter, or build on, provided that any work derived from py4DSTEM is also kept free and open.

Download files

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

Source Distribution

py4d_browser-1.5.1.tar.gz (379.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py4d_browser-1.5.1-py3-none-any.whl (379.0 kB view details)

Uploaded Python 3

File details

Details for the file py4d_browser-1.5.1.tar.gz.

File metadata

  • Download URL: py4d_browser-1.5.1.tar.gz
  • Upload date:
  • Size: 379.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for py4d_browser-1.5.1.tar.gz
Algorithm Hash digest
SHA256 dc5e19498ab04f28ac105ac21f97bd3d196ecb2c69efc482f0ef27d0e0704a96
MD5 c40cb64f2576382e6ccb21916829950a
BLAKE2b-256 3fc88780c92b328507cb61fd77b14ddb0e32eb7130526b1dd32c261e468c3166

See more details on using hashes here.

File details

Details for the file py4d_browser-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: py4d_browser-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 379.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for py4d_browser-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd27fa4d89e82273ecf9930917a1577b4344217d8276da6cc9e7f9394d65cc40
MD5 8c6f79284cd51313e7454c5b65443ab1
BLAKE2b-256 1dc29094239915aa8a3737d2494213f973a9054b7ca49f4fb69cce32890b2c6c

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.3

2 files

This release

1.5.1 This release

2 files

1.5.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.1

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.999999

2 files

0.999995

2 files

0.99999

2 files

0.9999

2 files

0.999

2 files

0.99

2 files

0.9

2 files

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