Skip to content

Commit

Permalink
in the middle of fixing the bug with the disconnected gen [skip ci]
Browse files Browse the repository at this point in the history
Signed-off-by: DONNOT Benjamin <[email protected]>
  • Loading branch information
BDonnot committed Dec 22, 2024
1 parent db186eb commit cf80467
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ TODO: in `main.cpp` check the returned policy of pybind11 and also the `py::call
TODO: a cpp class that is able to compute (DC powerflow) ContingencyAnalysis and TimeSeries using PTDF and LODF
TODO: integration test with pandapower (see `pandapower/contingency/contingency.py` and import `lightsim2grid_installed` and check it's True)

[0.10.0.post1] 2024-12-xx
[0.10.1.dev0] 2025-xx-yy
----------------------------
- [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
- [IMPROVED] refactoring of the c++ side container element to reduce
code (for "one end" elements such as loads, generators, static generators and shunts)

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Benjamin DONNOT'

# The full version, including alpha/beta/rc tags
release = "0.10.0.post1"
release = "0.10.1.dev0"
version = '0.10'

# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion lightsim2grid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# SPDX-License-Identifier: MPL-2.0
# This file is part of LightSim2grid, LightSim2grid implements a c++ backend targeting the Grid2Op platform.

__version__ = "0.10.0.post1"
__version__ = "0.10.1.dev0"

__all__ = ["newtonpf", "SolverType", "ErrorType", "solver", "compilation_options"]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pybind11.setup_helpers import Pybind11Extension, build_ext


__version__ = "0.10.0.post1"
__version__ = "0.10.1.dev0"
KLU_SOLVER_AVAILABLE = False

# Try to link against SuiteSparse (if available)
Expand Down
8 changes: 4 additions & 4 deletions src/element_container/GeneratorContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ void GeneratorContainer::set_vm(CplxVect & V, const std::vector<int> & id_grid_t
if ((!turnedoff_gen_pv_) && pseudo_off) continue; // in this case turned off generators are not pv

bus_id_me = bus_id_(gen_id);
std::cout << "gen_id " << gen_id << std::endl;
std::cout << "id_grid_to_solver.size() " << id_grid_to_solver.size() << std::endl;
std::cout << "bus_id_me " << bus_id_me << std::endl;
std::cout << "======== " << std::endl;
// std::cout << "gen_id " << gen_id << std::endl;
// std::cout << "id_grid_to_solver.size() " << id_grid_to_solver.size() << std::endl;
// std::cout << "bus_id_me " << bus_id_me << std::endl;
// std::cout << "======== " << std::endl;

bus_id_solver = id_grid_to_solver[bus_id_me];
if(bus_id_solver == _deactivated_bus_id){
Expand Down

0 comments on commit cf80467

Please sign in to comment.