Welcome! This repository contains code to benchmark the GNATSS code against Chadwell's Fortran code.
There are two important directories:
data
: Contains the input data files for the benchmarking.chadwell
: Contains the Fortran code results to compare against.
The configuration for GNATSS can be found in config.yaml
file.
This file will be read automatically during a GNATSS run.
This repository is configured to work with Github Codespaces. To use Github Codespaces to run the benchmark, simply click on the button below:
You'll be directed to a page that asks for various configurations for codespace. You can leave the default values and click on "Create Codespace". Github will then build the codespace for you, which may take a few minutes ☕.
Once your codespace is launched, follow the instructions below:
- Visual Studio Code Interface will open up within your browser.
- On the left hand side, you'll see a file explorer. Navigate to a file called
main.ipynb
and open it. - Once the notebook opens up, you need to select the kernel to run the notebook.
- Click on the "Select Kernel" button on the top right corner of the notebook.
- This will open up a drop down menu in the top center of the page. Select "Python Environments...", and then select "notebook (Python 3.10.13)" conda environment from the list.
- You'll know that the kernel is selected when you see "notebook (Python 3.10.13)" in the top right corner of the notebook.
- Now you can run the notebook by clicking on the "Run All" button on the top left corner of the notebook. Or you can choose to run the cells one by one to see what's happening in each step.
A codespace is "a development environment that's hosted in the cloud".
This particular codespace uses the environment.yml
to create a conda environment with all the dependencies needed to run the benchmark.
GitHub currently gives every user 120 vCPU hours per month for free, beyond that you must pay. So be sure to explicitly stop or shut down your codespace when you are done by going to this page (https://github.com/codespaces).
Below are instructions for running the benchmark locally in your own machine.
To run the benchmark, you will need to have GNATSS installed.
We recommend using conda
to install GNATSS for quick setup.
You can find the conda environment file in conda/environment.yml
.
Simply install that environment and activate it:
conda env create -f conda/environment.yml
conda activate gnatss-benchmark
Once the environment is setup, you can run the benchmark by spinning up a Jupyter lab server.
jupyter lab
Then, open the main.ipynb
notebook and run the cells.