Skip to content

Commit 78cdc32

Browse files
committed
docs(readme): +all details
1 parent a29f7b9 commit 78cdc32

1 file changed

Lines changed: 78 additions & 2 deletions

File tree

README.md

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,78 @@
1-
# replications-algorithm
2-
An implementation of the Replications Algorithm to automatically select the no. of replications in a DES
1+
# The replications algorithm for Discrete-Event Simulation
2+
3+
The materials in this repo provide an implementation of the Replications Algorithm to automatically select the no. of replications for a Discrete-Event Simulation.
4+
5+
## License
6+
7+
The materials have been made available under an [MIT license](LICENCE). The materials are as-is with no liability for the author. Please provide credit if you reuse the code in your own work.
8+
9+
## Citation
10+
11+
Please feel free to use or adapt the code for your own work. But if so then a citation would be very much appreciated!
12+
13+
```bibtex
14+
@software{The_replications_algorithm,
15+
author = {Monks, Thomas },
16+
license = {MIT},
17+
title = {{The replications algorithm for DES in Python}},
18+
url = {https://github.com/TheOpenScienceNerd/replications-algorithm}
19+
}
20+
```
21+
22+
## Installation instructions
23+
24+
### Installing dependencies
25+
26+
All dependencies can be found in [`binder/environment.yml`]() and are pulled from conda-forge. To run the code locally, we recommend installing [miniforge](https://github.com/conda-forge/miniforge);
27+
28+
> miniforge is Free and Open Source Software (FOSS) alternative to Anaconda and miniconda that uses conda-forge as the default channel for packages. It installs both conda and mamba (a drop in replacement for conda) package managers. We recommend mamba for faster resolving of dependencies and installation of packages.
29+
30+
navigating your terminal (or cmd prompt) to the directory containing the repo and issuing the following command:
31+
32+
```bash
33+
mamba env create -f binder/environment.yml
34+
```
35+
36+
Activate the mamba environment using the following command:
37+
38+
```bash
39+
mamba activate rep_alg
40+
```
41+
42+
Run Jupyter-lab
43+
44+
```bash
45+
jupyter-lab
46+
```
47+
48+
## Repo overview
49+
50+
```
51+
.
52+
├── binder
53+
│   └── environment.yml
54+
├── callcentresim
55+
│   ├── __init__.py
56+
│   ├── model.py
57+
│   └── output_analysis.py
58+
├── CHANGELOG.md
59+
├── CITATION.cff
60+
├── LICENSE
61+
├── images
62+
│   └── ...
63+
├── automated_reps.ipynb
64+
├── README.md
65+
└── rep_utility.py
66+
```
67+
68+
* `environment.yml` - contains the conda environment if you wish to work locally algorithm
69+
* `automated_reps` - main notebook file containing the tutorial code for the replications algorithm
70+
* `rep_utility` - local python module with supporting code for the algorithm
71+
* `callcentresim` - local python package containing the urgent care call centre SimPy model.
72+
* `images` -images for the notebook
73+
* `CHANGES.md` - changelog with record of notable changes to project between versions.
74+
* `CITATION.cff` - citation information for the package.
75+
* `LICENSE` - details of the MIT permissive license of this work.
76+
77+
78+

0 commit comments

Comments
 (0)