@@ -51,10 +52,36 @@ For live experience (meaning you enter the container), run:
...
@@ -51,10 +52,36 @@ For live experience (meaning you enter the container), run:
If you change code in `src`, you need to rebuild the image with `bash build/build-image.sh`. The `src` folder can also be mounted in the image, but the assumption is that life is already difficult as it is...
If you change code in `src`, you need to rebuild the image with `bash build/build-image.sh`. The `src` folder can also be mounted in the image, but the assumption is that life is already difficult as it is...
### interactive simulation
### interactive web-based simulation
In the `public` directory
In the `public` directory
- Run `python -m http.server`
- Run `python -m http.server`
- Go to `http://localhost:8000/public`
- Go to `http://localhost:8000/public`
## Plug and simulate
*Requirements: python (version 3.11.5) and poetry (version 1.7.1)*
All commands are to be carried out at `root` directory. The root directory of this repo needs to be added to `PYTHONPATH`
0. Create virtualenv with necessary dependencies (do once)
cd build/ && poetry install --no-root && cd ../
1. Activate virtualenv with necessary dependencies
cd build/ && poetry shell && cd ../
2. Direct simulation of our solar system
python tasks/src/direct_simulation.py
3. Direct simulation of our solar system with noise in initial data