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
Metadata
Release files for stelladb 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stelladb-0.4.0.tar.gz | 16.7 kB | Without provenance | Details for stelladb-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stelladb-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for stelladb-0.4.0-py3-none-any.whl |
Total release size: 34.0 kB
Release files / stelladb-0.4.0.tar.gz
| Download URL | stelladb-0.4.0.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b553f3d065e8e5000663b83b8f5b3e1bbe995c9689980875e587d6a94c9fc9f
|
|
BLAKE2b-256 checksum How to use checksums |
91aa42fc70c05c7c5bb931b6b2bb7e1d50bdb01e708d5f08508b6cd81cfecb72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / stelladb-0.4.0-py3-none-any.whl
| Download URL | stelladb-0.4.0-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30ae784643b9d0c4c3cf49c3755218a7b231bf4ee962b194d91a3d563307e2de
|
|
BLAKE2b-256 checksum How to use checksums |
043cc9997fb34a20f2846733ec8cd87644726e2d41d484cbf0fff3a042f998cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for stelladb 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.