Skip to main content

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

Project description

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

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

beam_corset-0.3.0.tar.gz (937.4 kB 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.3.0-py3-none-any.whl (55.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beam_corset-0.3.0.tar.gz
  • Upload date:
  • Size: 937.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for beam_corset-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e7835ce72501ff1bb51f78c9e6b4625b5e2cdf2689050e8bcf718b6bacabb378
MD5 d415a1dbf93f9b973762e3d60f6d65ce
BLAKE2b-256 281464e6d8e4173a1e607ac4583668071961c0fed4083df453d271b0b10ff9b9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for beam_corset-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e38f0ef8b7ce0a5e564d5554dd5f5bacb4ae933d00232da64a06605ba5a54b4
MD5 0c7f114a3e3532915b8677e744de6cd0
BLAKE2b-256 72e5f3eae25a49b2b4f3f5f0f08f6c2a482fe6c179aead828813d2d7e18014a9

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