Includes the functions required to upload DESC results to the stellarator database. You can access the database here.
This is still a work in progress. VMEC and coil data upload functions will be implemented soon!
If you are on Linux, WSL or MacOS, you should be able to install stelladb directly from PyPi.
pip install stelladbThis package will be used along with DESC or SIMSOPT. You should install them separately to your environment.
git clone https://github.com/PlasmaControl/Stellarator-Database.gitOnce you get the files,
cd Stellarator-Databaseconda create --name db 'python>=3.9, <=3.12'
conda activate db
pip install -r requirements.txtIf you just want to upload DESC results, follow these steps for creating conda environment,
conda create --name db 'python>=3.9, <=3.12'
conda activate db
pip install desc-opt seleniumThen, you can upload to database inside the repo, or anywhere where you can access the module stelladb. You can either git clone the whole repository or you can just get the stelladb folder of the repo and copy it to where you want to call the functions from.
For more detailed explanation, refer to the notebooks in tutorials subfolder in the repo.
The automated upload functions relies on selenium which opens a web browser on the background. To be able to use this package, you should have a web browser. On WSL, the system cannot use the browser installed on the Windows, you should install one to Linux subsystem too.
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb -y
google-chrome --version