Developer documentation¶
These pages are for people who want to change PINNStudio itself: fix a bug, add an example, a training method or a geometry, or improve this documentation.
PINNStudio is a PySide6 (Qt for Python) application that writes and runs DeepXDE scripts. Almost every feature touches the
same three places: a field of the configuration (PINNConfig), a widget in the window, and the code
generators that turn the configuration into a training script.
| Page | Content |
|---|---|
| Repository structure | What is where in the repository |
| Architecture and code generation | From the window to a running training script and back to the results |
| Configuration schema | PINNConfig, its validation, and a generated table of every field |
| Adding an example | How Quick Examples and templates are registered, with reference data and tests |
| Adding a training method | The full path of a setting, followed through an existing method (RBA) |
| Geometry and boundary conditions | Where geometry types and boundary-condition rows are implemented |
| Tests | The test suite, slow tests, the CI workflows, regression tests |
| Building and packaging | Package metadata, wheel and sdist, installers |
| Contributing and documentation | The contribution process and how to work on this site |
| Releases | How a release is made |
Development setup¶
git clone https://github.com/AsfandyarKhan72/PINNStudio.git
cd PINNStudio
python -m venv venv
source venv/bin/activate # venv\Scripts\activate on Windows
pip install -e . pytest pytest-xdist
python -m pinnstudio # or: python -m pinnstudio.main
This installs PINNStudio from source. pip install pinnstudio installs the latest PINNStudio release from PyPI
instead. For a CPU-only or a specific CUDA build of PyTorch, install PyTorch first from the index
that fits the machine (see Installation).