Skip to main content

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

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.4.0.tar.gz (16.7 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.4.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for stelladb-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7b553f3d065e8e5000663b83b8f5b3e1bbe995c9689980875e587d6a94c9fc9f
MD5 d63858c633b0974a8662af2960994391
BLAKE2b-256 91aa42fc70c05c7c5bb931b6b2bb7e1d50bdb01e708d5f08508b6cd81cfecb72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stelladb-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30ae784643b9d0c4c3cf49c3755218a7b231bf4ee962b194d91a3d563307e2de
MD5 997d509c4f9eb765494a0ea13aa769db
BLAKE2b-256 043cc9997fb34a20f2846733ec8cd87644726e2d41d484cbf0fff3a042f998cd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page