Skip to content

Commit

Permalink
streamlit now optional
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Feb 15, 2024
1 parent 701a954 commit 53b3c9e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci_with_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,22 @@ jobs:
- name: install packages for tests
run: |
pip install .[tests]
- name: Run test_utils
run: |
- name: Run test_utils
run: |
pytest tests
- name: Run examples
run: |
- name: Run examples
run: |
cd examples
python plot_phir_slice_point_source_combined_multiple_tallies.py
python plot_phir_slice_point_source.py
python plot_phir_slice_ring_source.py
python plot_rz_slice_point_source_combined_multiple_tallies.py
python plot_rz_slices_point_source.py
python plot_rz_slices_ring_source.py
- name: install packages with GUI
run: |
pip install .
openmc_cylindrical_mesh_plotter
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ openmc_cylindrical_mesh_plotter is available on PyPi
pip install openmc_cylindrical_mesh_plotter
```

Install with the optional Graphical User Interface (GUI)

```bash
pip install openmc_cylindrical_mesh_plotter[gui]
```

## API Usage

See the [examples](https://github.com/fusion-energy/openmc_cylindrical_mesh_plotter/tree/main/examples) folder for example scripts
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ classifiers = [
dependencies = [
"numpy>=1.21.1",
"matplotlib>=3.4.2",
"pandas",
"streamlit"
"pandas"
]
dynamic = ["version"]

Expand All @@ -34,7 +33,10 @@ openmc_cylindrical_mesh_plotter = "openmc_cylindrical_mesh_plotter.launch:main"

[project.optional-dependencies]
tests = [
"pytest",
"pytest"
]
gui = [
"streamlit"
]

[project.urls]
Expand Down
1 change: 0 additions & 1 deletion src/openmc_cylindrical_mesh_plotter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .core import *
from .app import *

0 comments on commit 53b3c9e

Please sign in to comment.