Skip to main content

EDView

(E)nergy-(D)ispersive X-ray diffraction data (View)er

GUI software for viewing data of the Energy-Dispersive X-ray Diffraction Tomography (EDDT) technique, processed by Algodif. Built on Algodif, PySide6, pyqtgraph, and pyopengl. This unified GUI combines the separate GUIs published in the Algodif codebase.

Tabs

  • Data browser: folder tree, file list and preview of images, text/JSON files and HDF datasets. Send the selected files or folders to other tab with View in or Add to.

    img

  • Data correction:

    • Correction: correct raw scans (a scan folder with a tifs sub-folder, a folder of tif files, files, an HDF file, or a range of scan_xxxxx folders) with q or energy calibration coefficients, with optional background removal. Output per scan: tif, HDF, or xy/csv (raw or corrected), plus metadata.json (with the output step), the coefficients and the map of the raw pixels.

      img

    • Conversion: tif folder to 3D HDF, 3D HDF to tif folder, tif folder of a 2D scan to 4D HDF, tif folder or HDF to xy/csv files.

  • EDDT viewer: image of a 1D scan, q-slice across the scan, and the diffraction pattern of the selected row.

    img

  • Multiple-lines viewer: as above, with the patterns of all images at the selected row.

    img

  • Multiple-scans viewer: several 1D scans; patterns of all scans at the same image and row.

    img

  • 2D-scan viewer: image at a scan position (tif files named ..._<row>_<col>.tif, loaded on demand, a 4D HDF dataset, or a 3D HDF dataset with the scan rows, columns and scan order given: row, column, snake_row or snake_column), its pattern, and the q-slice along one scan axis.

    img

  • 4D viewer: a 4D HDF dataset (q, Z, scan rows, scan columns) of a 2D scan, read on demand. Shows the volume (mean over a q-range) in 3D, with transparency thresholds and real pixel sizes, a 2D slice of the volume (fixed row, column or Z), the q-Z image at a scan position, and the diffraction pattern at a Z. Large files can be downsampled (mean binning along q, Z, rows and columns) to a smaller HDF file, and viewed directly. Without PyOpenGL, the 3D view is replaced by a 2D image of the volume.

    img

The viewers read the q-step and the motor positions from the JSON metadata next to the data (e.g. written by the Data correction tab or process_data.py of Algodif), or from the HDF file. Clicking on the image selects a row and an x-value; clicking on the q-slice selects a row and a scan position.

Installation

Install Miniconda, Anaconda or Miniforge, then open a Linux terminal or the Miniconda/Anaconda PowerShell prompt and use the following commands for installation.

Using pip:

pip install edview

Using conda:

conda install -c algotom -c conda-forge edview

Once installed, launch EDView with

edview

or with a base folder for the data browser:

edview -b /path/to/data

Installing from source:

  • Create a conda environment
    conda create -n edview python=3.11
    conda activate edview
    
  • Clone the source (git needs to be installed)
    git clone https://github.com/algodif/edview.git
    
  • Navigate to the cloned directory (having the pyproject.toml file)
    pip install .
    
  • Or run without installing, from the cloned directory, in an environment having the packages in requirements.txt:
    python -m edview.main
    

The 3D views of the multiple-lines and 4D viewers need PyOpenGL (installed with EDView); without it, 2D plots are used.

Building a conda package from the recipe:

conda install conda-build
conda build -c algotom -c conda-forge recipe

Generating the executable application

  • Install the packages in requirements.txt, PyInstaller, and Pillow (to convert the PNG icon) in your environment.
  • From the repository root, run:
    python build_exe_app.py
    
  • The application is generated in the build_app/edview folder. To move the app to a different place, move the entire folder.

Metadata

Release files for edview 1.0.0

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

Source distribution (sdist)

Source distribution for edview 1.0.0
File Size Uploaded Provenance Actions
edview-1.0.0.tar.gz 93.1 kB Without provenance Details for edview-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 185.5 kB

Release files / edview-1.0.0.tar.gz

Download URL edview-1.0.0.tar.gz
Size 93.1 kB
Tags Source
SHA-256 checksum
How to use checksums
093434e051742b9efe35c33acdf362a757e92bb2815b4b965551aace9d516fcb
BLAKE2b-256 checksum
How to use checksums
a8085f7fc8f01311f63b372ef595ac178bac99fcb9a479a29f0044f3f29f6e6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / edview-1.0.0-py3-none-any.whl

Download URL edview-1.0.0-py3-none-any.whl
Size 92.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e233a02e48b64e4c69f041116063d7ca89edc46d7e4ef348e41a48d8f7734ec
BLAKE2b-256 checksum
How to use checksums
70735e11f6ae6042ea5fc435ada4d4867dc3492ea2c6b116161827a598703c6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for edview 1.0.0

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

1.0.0 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