Skip to main content

Beam Corset

Beam Corset is a Gaussian optics mode matching tool made for use in Jupyter notebooks.

Key Features

  • Lens placement in multiple shifting regions
  • Ensure minimal distances between lenses
  • Constrain beam radius to ensure the beam fits through apertures
  • Account for existing fixed lenses
  • Detailed reachability and sensitivity analysis of solutions

Installation

Install from PyPI:

pip install beam-corset

[!Tip] Try Beam Corset in your browser with JupyterLite!

Links

Information for Developers

This project is managed and built using Pixi, see their documentation for more information on dependency management and other features. To install the development environment for usage in Jupyter notebooks, run:

pixi install -e dev

The pyproject.toml file defines the following tasks:

  • build: Build the package
  • publish: Publish the package to PyPI
  • build-docs: Build the documentation
  • build-jp-lite: Build the JupyterLite instance for the documentation (does not work properly on Windows)
  • pages: Executes build-docs and build-jp-lite to build the web pages for GitHub Pages

Tasks can be executed with:

pixi run [task]

They will automatically be executed in their correct Python environment. Note that this only works if no environment has been activated with pixi shell -e [env].

To prevent committing notebook outputs to the repository and producing unnecessary diffs, set up the appropriate filters with the following shell commands.

git config filter.strip-notebook-output.clean 'pixi run -e dev jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'
git config filter.strip-notebook-output.smudge cat
git config filter.strip-notebook-output.required true

Download files

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

Source Distribution

beam_corset-0.6.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

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

beam_corset-0.6.1-py3-none-any.whl (67.6 kB view details)

Uploaded Python 3

File details

Details for the file beam_corset-0.6.1.tar.gz.

File metadata

  • Download URL: beam_corset-0.6.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for beam_corset-0.6.1.tar.gz
Algorithm Hash digest
SHA256 2d3254a2a3f364e4d30212f3ad4510a2205c5ef84688f955bf7f60ddd4adf94d
MD5 2c61e15dd8b7fa18bb6d2fb57c5e6ca6
BLAKE2b-256 fe59172fa2f0de10b0a2a750f0b2c0d2e2c43f43905e1bae4a03fdcb8c3b92bc

See more details on using hashes here.

File details

Details for the file beam_corset-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: beam_corset-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 67.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for beam_corset-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93e7eb9c5327ec2a116ea65a7b5597766c199d3fa9e3294e82752729f1308fd6
MD5 0f8ac9c9ae43721b90a5c531c50714b3
BLAKE2b-256 f63b30671d8d134a0eb2ea20347f03e1365f3347df9fbc79a998aefc936550ed

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

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