This is a small Streamlit-based tool to calculate power settings for different lamp configurations using cubic spline interpolation. The app allows selection of lamp types and input of desired power, then returns the appropriate setting and a plot of the data.
You can install the app directly from this repository using pip:
pip install git+https://github.com/AlexEith/Lamps.git
To run the Streamlit app:
streamlit run streamlit_app/lamps.py
Your CSV data files must be placed in a folder named lamps/ in the same directory where you run the app. Filenames must follow this format:
<type>_<wavelength>_<power_source>_<beamcombiner>.csv
type: HP or UHP
wavelength: 365, 405, 6500K or analog
power_source: 1000mA-1-LED-1, 13A-1, 18A-1 or analog
beamcombiner: noBC, above415 or below400
Example:
HP_415-1_1000mA-1-LED-2_above415.csv
Each file should contain at two columns:
power: Measured power valuessetting: Corresponding device settings- no other addings are allowed, only write the values in the columns below, do not leave any empty lines
All required packages are listed in requirements.txt and will be installed automatically when using pip.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.