Skip to main content

Mode Analyzer

alt text

A GUI program written in Python to analyze optical waveguide mode analysis. It opens popular image file formats i.e. *.JPG, *.TIFF, etc. and analyzes the intensity profiles along a line or averaged in a cross-section box. It's intended to be easy to use to do basic image corrections and analysis on optical mode profiles and MMI pattern analysis both for facet images and fluorescent images.

Prerequisites

  • Python (>= 3.6, might work with 2.7 not tried!)
  • Numpy (>= 1.13.3)
  • Scipy (>= 1.0.0)
  • Matplotlib (>= 2.1.1)
  • Pillow (>= 5.0.0)

You can install all requirements using pip install command. Once installed, just simply cd to the main master folder and call main.py file via python (python main.py).

GUI

alt text

alt text

The main window consists of three main panels:

  • Directory: list of readable image files with datapoint copy and save buttons at the bottom
  • Image: Image view and profile plot graph at the bottom
  • Settings: Tabs of different analysis parameters

There's a table to show statistics about detected peaks and fitted parameters. Here are the availble metrics for the latest version:

  • Number of spots: number of detected peaks based on the parameters set in peak find setting section. For optical profiles and MMI patterns, this number indicates number of bright spots.
  • Full-Width-Half-Maxima (FWHM): FWHM based on extracted σ value from Gaussian fit: FWHM = 2σ√(2 ln(2))
  • Peak to Valley: the gap between average of peaks and valleys for detected peaks
  • Δx: the separation between detected peaks

Average and standard deviation of the mentioned metrics are listed in the table.

A pop up window with plot of actual values taken from raw data as well as Gaussian fits to the detected peaks in intensity plot. There are highlighted parts to show peaks and valleys and dashed lines showing averages of these parameters.

alt text

Reference

This program was used to do MMI pattern analysis published in this paper: (will be great if you cite it if you find this program helpful in your study)

  1. Stott, Matthew A., Vahid Ganjalizadeh, Maclain H. Olsen, Marcos Orfila, Johnny McMurray, Holger Schmidt, and Aaron R. Hawkins. "Optimized ARROW-based MMI waveguides for high fidelity excitation patterns for optofluidic multiplexing." IEEE journal of quantum electronics 54, no. 3 (2018): 1-7.

Metadata

Release files for mode-analyzer 0.1.5

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

Source distribution (sdist)

Source distribution for mode-analyzer 0.1.5
File Size Uploaded
mode_analyzer-0.1.5.tar.gz 36.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mode-analyzer 0.1.5
File Interpreter ABI Platform
mode_analyzer-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 75.5 kB

Release files / mode_analyzer-0.1.5.tar.gz

Download URL mode_analyzer-0.1.5.tar.gz
Size 36.7 kB
Tags Source
SHA-256 checksum
How to use checksums
366c7fb796c1bf7f343fbd3859c287140b3aab90aac5f2df128181a841f7bf8c
BLAKE2b-256 checksum
How to use checksums
72bb76516a0e48d608a3b3ae3fc2c3b270a43e928084cde11ed16faa06168cff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / mode_analyzer-0.1.5-py3-none-any.whl

Download URL mode_analyzer-0.1.5-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
168a1c8778ab14ddef930ad4c2ff2cb41dd6d64b16f6f5f1698a3bfcb6526ed0
BLAKE2b-256 checksum
How to use checksums
4f727ce5f40bf92e49e1d0deb5a8b73c65f6656b1352dd6b64b4e7de3f6602e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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