Lightsim2grid

Latest version: v0.10.1.post1

Safety actively analyzes 707268 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

0.10.2

----------------------
- [FIXED] an error when changing of bus one of the slack (did not trigger the
recompute of pv bus ids)
- [FIXED] an issue when turning off a generator: it was still declared as "slack"
if it was one.
- [FIXED] could not disconnect a generator when it was a slack bus
- [ADDED] packaging package as a dependency
- [IMPROVED] refactoring of the c++ side container element to reduce
code (for "one end" elements such as loads, generators, static generators and shunts)

0.10.1

----------------------------
- [FIXED] some timings on the benchmarks were not measured at the right time
- [ADDED] more benchmarks especially for DC powerflow
- [ADDED] a `dcpf` function that can replace the pandapower `dcpf` interal function
- [IMPROVED] benchmark on the documentation
(clarity of what is done)
- [IMPROVED] consistency of the names and measured times accross the different benchmarks

0.10.0

-------------------
- [BREAKING] disconnected storage now raises errors if some power is produced / absorbed, when using legacy grid2op version,
you can retrieve the previous behaviour by initializing the `LightSimBackend` with
`backend = LightSimBackend(..., stop_if_storage_disco=False)`
- [BREAKING] with the new `detachment_is_allowed` feature in grid2op, the kwargs `stop_if_load_disco`,
`stop_if_gen_disco` (and `stop_if_storage_disco`) are now optional. They are set up from the
call to `grid2op.make(...)` and are erased by the `allow_detachment` kwargs. In other words,
you don't need to set `stop_if_load_disco`, `stop_if_gen_disco` or `stop_if_storage_disco`. It is
automatically set by `grid2op.make(..., allow_detachment=XXX)` to have the correct bahaviour.
- [FIXED] an issue with the storage units (when asking it to produce / consume
but deactivating them with the same action the grid did not diverge)
- [IMPROVED] add the grid2op "detachement" support (loads and generators are allowed
to be disconnected from the grid)
- [ADDED] a kwargs `stop_if_storage_disco` to control (in legacy grid2op version) the behaviour
of the backend when a storage unit is disconnected.

0.9.2.post2

--------------------------
- [FIXED] The attribute `can_output_theta` (of base `Backend` class)
was not set to `True` if using the pypowsybl loader.
- [FIXED] the github CI to work properly on many linux buit image
- [IMPROVED] build on python 3.13

0.9.2.post1

--------------------------
- [FIXED] There is still a bug with the pypowsybl 1.8.1 version with the
tap changer ratio (unconsistency between what needs to be done and the
actual documentation). The fix is to set the const variable `PP_BUG_RATIO_TAP_CHANGER`
to be at least 1.9.0, otherwise results are wrong.

0.9.2

--------------------------
- [ADDED] support loading a grid when everything is NOT on the same bus
(`topo_vect` used to be wrong in this case). This is especially usefull
for grid loaded with `pypowsybl`
- [ADDED] a file benchmarking the timings for running powerflow on different
grid sizes.
- [UPDATED] urls to match the new repo location
- [UPDATED] urls to match new grid2op location

Page 1 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.