Metadata-Version: 2.4
Name: pygslv
Version: 1.1.0
Summary: Native power-system simulation and optimization
Author: eRoots
License-Expression: LicenseRef-eRoots-Proprietary
License-File: LICENSE.txt
Project-URL: Homepage, https://www.eRoots.tech
Requires-Python: >=3.10
Requires-Dist: numpy
Requires-Dist: scipy
Description-Content-Type: text/markdown

# pygslv

Native Python bindings for the GSLV power-system simulation engine.

```sh
python -m pip install ./src/pygslv
python -m build --wheel --outdir wheelhouse ./src/pygslv
```

Run these commands from the repository root after preparing dependencies with
`cmake -P libs/build_third_party.cmake`. The package has its own `pyproject.toml`
and CMake entry point; scikit-build-core replaces the custom `setup.py`.
The package version is read from `src/version.txt` (major, minor and patch),
including the vendored copy when building from a source archive.
Source archives include shared native sources under `_native/`. From an
extracted archive, prepare dependencies with
`cmake -P _native/libs/build_third_party.cmake` before building the wheel.

Curtailment is provided by the separate `py_map_utils` distribution. This module
does not contain its bindings or link the `map_utils` library.

## Binding conventions


```cpp
py::class_<DcLine, DcLinePtr, BranchParent>(
                m,
                "DcLine",
                py::module_local(),
                py::call_guard<py::gil_scoped_release>())
```

`py::module_local()` allows this class t be repeated in name in the whole python. this is extremely important.

`py::call_guard<py::gil_scoped_release>()` allows the future GIL-less python to operate this class in parallel. 
