Skip to content

Commit

Permalink
Add lifefit_gui CLI
Browse files Browse the repository at this point in the history
Add command line interface to start streamlit app
  • Loading branch information
fdsteffen committed Aug 1, 2024
1 parent 1f48ba7 commit 5836c8e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## Changelog
All notable changes to this project are documented in this file.

### [1.0.7] 2024-08-1
#### Added
- Add `lifefit_gui` CLI to start streamlit app

### [1.0.6] 2024-08-1
#### Added
- Add reader to parse intensity counts along a time axis instead of channels.
Expand Down
13 changes: 0 additions & 13 deletions app/Dockerfile

This file was deleted.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ pytest = "^8.2.2"
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
lifefit_gui = "lifefit.gui:main"

[tool.black]
line-length = 120

Expand Down
1 change: 1 addition & 0 deletions src/lifefit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

DATA_DIR = Path(__file__).resolve().parents[2].joinpath("data")
TEST_DIR = Path(__file__).resolve().parents[2].joinpath("tests")
APP_DIR = Path(__file__).resolve().parents[0].joinpath("app")
VERSION = importlib.metadata.version("lifefit")

from . import tcspc
File renamed without changes.
7 changes: 7 additions & 0 deletions src/lifefit/gui.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from streamlit.web import cli
from lifefit import APP_DIR


def main():
"""Run streamlit GUI of LifeFit"""
cli.main_run([str(APP_DIR.joinpath("app.py"))])

0 comments on commit 5836c8e

Please sign in to comment.