Skip to content

Commit

Permalink
Update readme with simulation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
chraibi committed Nov 29, 2024
1 parent f901425 commit 0579564
Show file tree
Hide file tree
Showing 3 changed files with 1,097 additions and 19 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ streamlit run app.py

### Run simulation in a terminal:

1. Generate variations
```bash
./run.sh simulation.py <input-file> <output-file.txt> <run-jpsvis>
python generage_variations.py --inifile files/inifile.json --param motivation_parameters/width --values 1.0,2.0
```

- `python-script.py`: Model logic.
- `input-file.json`: inifile of the project with all necessary configs.
- `output_file.txt`: a successful simulation creates a trajectory file.
- `run-jpsvis (1|0)`: to visualize the trajectories with jpsvis
2. Run simulation with variations

```bash
python simulation.py --variations-file variations.json --inifile inifile.json
```

with the json file being produced in step 1.



1,099 changes: 1,086 additions & 13 deletions positions.ipynb

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def run() -> None:
],
)
SELECTED_OUTPUT_FILE = st.selectbox(
"Select sqlite", sorted(list(set(glob.glob("files/*.sqlite"))), reverse=True)
"Select sqlite",
sorted(list(set(glob.glob("files/variations/*.sqlite"))), reverse=True),
)

SELECTED_JSON_FILE = st.selectbox(
Expand Down

0 comments on commit 0579564

Please sign in to comment.