Skip to main content

Includes functions to upload DESC and VMEC data to the stellarator database.

Project description

Stellarator-Database

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!

Install using pip

If you are on Linux, WSL or MacOS, you should be able to install stelladb directly from PyPi.

pip install stelladb

This package will be used along with DESC or SIMSOPT. You should install them separately to your environment.

Install using GIT

Clone GIT repo

git clone https://github.com/PlasmaControl/Stellarator-Database.git

Once you get the files,

cd Stellarator-Database

Building conda environment

conda create --name db 'python>=3.9, <=3.12'
conda activate db
pip install -r requirements.txt

If 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 selenium

Then, 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.

Sample usage

For more detailed explanation, refer to the notebooks in tutorials subfolder in the repo.

Installing Chrome on WSL2

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stelladb-0.3.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stelladb-0.3.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file stelladb-0.3.0.tar.gz.

File metadata

  • Download URL: stelladb-0.3.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for stelladb-0.3.0.tar.gz
Algorithm Hash digest
SHA256 92a5edda3a67a230d80045b3f4c645060c8e03b8116186fea2d8db0816f8a9e4
MD5 f8c6be088be3ecbf7c5549af1d05a628
BLAKE2b-256 baf19888a611f36db0278e0f70d0148a900864e006f3de123e5e97e6a88f14cb

See more details on using hashes here.

File details

Details for the file stelladb-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: stelladb-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for stelladb-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1255305ffc48391f6be9c5426447ba4125f91efb2669d706d46a0530b3313505
MD5 cb5cb347f6a2bfa598e54643989214be
BLAKE2b-256 7721431f63e0e76000ea8282b350c65ab557052a485786546eea4fdfb34fb73b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page