Skip to main content

GUI tool for exploring formulas using DearPyGui

Project description

Lambda Explorer

A small GUI application for interacting with symbolic formulas and plotting them using Dear PyGui.

The GUI presents every available formula and lets you calculate or plot results by filling in all but one variable. Formulas are defined with SymPy and are automatically discovered when the application starts.

Installation

pip install lambda-explorer

To install from source:

pip install -r requirements.txt
pip install -e .

Usage

After installation you can launch the GUI with the command:

lambda-explorer

This will open the formula browser where you can calculate and visualize formulas.

Lightweight CLI

If memory usage is a concern you can use a simple command line interface:

lambda-explorer-cli

This avoids the GUI and only loads the selected formula when needed.

Library Usage

lambda-explorer can also be used programmatically. Formula classes are available in lambda_explorer.tools.aero_formulas and provide a convenient solve() method. Exactly one variable must be omitted so that it can be calculated:

from lambda_explorer.tools.aero_formulas import ReynoldsNumber

eq = ReynoldsNumber()
# Solve for Re while providing the other values
re = eq.solve(rho=1.225, V=50.0, c=0.5, mu=1.8e-5)
print(re)

To launch the GUI from Python simply call lambda_explorer.main():

from lambda_explorer import main

main()

Default values used inside the GUI can be customised. Use the Defaults tab in any formula window to load or save the defaults.yaml file directly, or choose "Save As" to export the defaults to a custom YAML file. The defaults map variable names to their stored string values.

The application also remembers your window layout. When you close the GUI, the current positions and sizes of all windows are written to layout.ini and restored on the next start.

The Settings window lets you adjust the logging level of the application at runtime. Choose between DEBUG, INFO, WARNING and ERROR to control the amount of information written to the log window.

Developer Documentation

Developers who want to implement additional formulas can follow the guide in docs/developer_guide.md. It describes the required class structure and how new equations are automatically integrated into the GUI.

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

lambda_explorer-0.1.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

lambda_explorer-0.1.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file lambda_explorer-0.1.0.tar.gz.

File metadata

  • Download URL: lambda_explorer-0.1.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lambda_explorer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9ddbac84577c653a1e6e83f0ab96d56da1dbd9d4c9b6e68d5b0a69e23808c20a
MD5 d9bbf34b8cdcc5c63b4b3f1d33448e60
BLAKE2b-256 1e2339a7126c44934a2dcd7969727973d034f65a1ff9a2e9f7d53f747735509a

See more details on using hashes here.

File details

Details for the file lambda_explorer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lambda_explorer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3265d5c3067ef415a985c0e22b028dc5ee15adbc8cdf9061a6c6222584a788c5
MD5 f6dea913ca2e688d233af49dc8eb374c
BLAKE2b-256 a35fe2bc26a12787e0224d876c9068418958000b499bcf30055331c940ffa151

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