Skip to content

Commit

Permalink
updated miex jupyter notebook examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mlietzow committed Aug 12, 2024
1 parent 567c04d commit 111e531
Show file tree
Hide file tree
Showing 4 changed files with 236 additions and 138 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ streamlit run miex_app.py

## Import MIEX

[miex.py](miex.py) can be imported and used in any python script (see [example script](miex_example.py) or [jupyter notebook](miex_notebook.ipynb)):

```bash
python3 miex_example.py
```
[miex.py](miex.py) can be imported and used in any python script (see [jupyter notebook 1](miex_notebook_1.ipynb) or [jupyter notebook 2](miex_notebook_2.ipynb)):

To calculate the efficiency factors and scattering amplitude functions (optionally), use e.g.,

Expand Down Expand Up @@ -165,8 +161,8 @@ python3 test_miex.py
├── example2.input # Exemplary input file
├── miex.py # Source code of MIEX
├── miex_app.py # Python script to run MIEX via Streamlit
├── miex_example.py # Exemplary Python script on how to use MIEX in a user build Python code
├── miex_notebook.ipynb # Jupyter notebook on how to use MIEX
├── miex_notebook_1.ipynb # Jupyter notebook on how to use MIEX (basic)
├── miex_notebook_2.ipynb # Jupyter notebook on how to use MIEX (advanced)
├── requirements.txt # Required python packages for MIEX
├── run_miex.py # Python script to run MIEX with input files
└── test_miex.py # Python script for test purposes
Expand Down
124 changes: 0 additions & 124 deletions miex_example.py

This file was deleted.

226 changes: 226 additions & 0 deletions miex_notebook_1.ipynb

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions miex_notebook.ipynb → miex_notebook_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -33,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -58,7 +58,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -84,7 +84,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -102,7 +102,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -215,7 +215,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -262,7 +262,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down

0 comments on commit 111e531

Please sign in to comment.