Skip to main content

Python connection for EMode

Project description

emodeconnection

Python interface for EMode, a photonics simulation platform for waveguide mode solving, propagation, and analysis.

Requirements

Installation

pip install emodeconnection

Quick Start

import emodeconnection as emc

# Open the EMode login window (only required on first use)
emc.EModeLogin()

## Connect and initialize EMode
em = emc.EMode(save = False)

## Draw shapes
em.shape(name = 'BOX', material = 'SiO2', height = 800)
em.shape(name = 'core', material = 'Si', width = 600, height = 400)

## Run FDM, display results, and close
em.FDM()
em.report()
em.close()

Features

  • Simple Python API for EMode simulation sessions
  • Automatic login and license management
  • Cross-platform: Windows, macOS, Linux
  • Command-line installer via emode-install

Installing EMode

The emodeconnection package includes a command-line tool to download and install the EMode executable:

emode-install

Options

emode-install                            # Install latest version
emode-install --help                     # Show all options
emode-install --list-versions            # Show available versions
emode-install --update                   # Update to the latest version
emode-install --update --version 0.2.5   # Switch to a specific version
emode-install --version 0.2.5            # Install a specific version
emode-install --install-dir /opt/bin     # Custom install directory
emode-install --uninstall                # Remove EMode
emode-install --uninstall --install-dir /opt/bin  # Remove from custom location

Environment variables

Variable Description
EMODE_EULA_ACCEPTED=1 Accept the EULA non-interactively (CI/headless)
EMODE_EMAIL Pre-fill login email
EMODE_PASSWORD Pre-fill password (use with caution)
EMODE_INTERACTIVE=1 Use interactive installer GUI
UNINSTALL_EMODE=y Accept the uninstallation non-interactively

Documentation

Full documentation is available at docs.emodephotonix.com.

License

See LICENSE for details.

MATLAB

A legacy MATLAB interface (emodeconnection.m) is included in this repository for historical reference. It is no longer supported as of EMode 0.2.5 and may not work with newer versions. No support is provided for MATLAB usage.

Project details


Download files

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

Source Distribution

emodeconnection-1.1.11.tar.gz (56.5 kB view details)

Uploaded Source

Built Distribution

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

emodeconnection-1.1.11-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file emodeconnection-1.1.11.tar.gz.

File metadata

  • Download URL: emodeconnection-1.1.11.tar.gz
  • Upload date:
  • Size: 56.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.14

File hashes

Hashes for emodeconnection-1.1.11.tar.gz
Algorithm Hash digest
SHA256 c8c16d5b7224e0eded816438edcaa8145dd510591f5e9903c0ee1eaf622a5193
MD5 9dce3cd49ecf6f9f6036cc5660b016a3
BLAKE2b-256 1020c0d9cec53012f6b92e25ab843cb7c3db590aadb6c3cafe6511f193d675c9

See more details on using hashes here.

File details

Details for the file emodeconnection-1.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for emodeconnection-1.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 26f963b349becb986be5a50df63b43f71beacbf6c65d790fe3897f0efb6e4f3a
MD5 3f146b41008fce4d740124b74a097aa1
BLAKE2b-256 b3027cd72c12fd0e465cfa174b23c68d86737c396bdc36bbbd020f16a83c6944

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page