diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 22c7eaa..7ddf4ad 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -26,6 +26,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.9.2.post1] 2024-11-28 +-------------------------- +- [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] 2024-10-18 -------------------------- - [ADDED] support loading a grid when everything is NOT on the same bus diff --git a/benchmarks/benchmark_grid_size.py b/benchmarks/benchmark_grid_size.py index 1d5578e..bbc2b62 100644 --- a/benchmarks/benchmark_grid_size.py +++ b/benchmarks/benchmark_grid_size.py @@ -55,7 +55,7 @@ "case9241pegase.json" ] -def make_grid2op_env(pp_case, casse_name, load_p, load_q, gen_p, sgen_p): +def make_grid2op_env(pp_case, case_name, load_p, load_q, gen_p, sgen_p): param = Parameters.Parameters() param.init_from_dict({"NO_OVERFLOW_DISCONNECTION": True}) @@ -75,7 +75,7 @@ def make_grid2op_env(pp_case, casse_name, load_p, load_q, gen_p, sgen_p): return env_lightsim -def make_grid2op_env_pp(pp_case, casse_name, load_p, load_q, gen_p, sgen_p): +def make_grid2op_env_pp(pp_case, case_name, load_p, load_q, gen_p, sgen_p): param = Parameters.Parameters() param.init_from_dict({"NO_OVERFLOW_DISCONNECTION": True}) diff --git a/docs/conf.py b/docs/conf.py index 4812d14..6002417 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,7 @@ author = 'Benjamin DONNOT' # The full version, including alpha/beta/rc tags -release = "0.9.2" +release = "0.9.2.post1" version = '0.9' # -- General configuration --------------------------------------------------- diff --git a/lightsim2grid/__init__.py b/lightsim2grid/__init__.py index e8001c0..7b02000 100644 --- a/lightsim2grid/__init__.py +++ b/lightsim2grid/__init__.py @@ -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.9.2" +__version__ = "0.9.2.post1" __all__ = ["newtonpf", "SolverType", "ErrorType", "solver", "compilation_options"] diff --git a/lightsim2grid/gridmodel/from_pypowsybl/_from_pypowsybl.py b/lightsim2grid/gridmodel/from_pypowsybl/_from_pypowsybl.py index dd06184..0a5cee2 100644 --- a/lightsim2grid/gridmodel/from_pypowsybl/_from_pypowsybl.py +++ b/lightsim2grid/gridmodel/from_pypowsybl/_from_pypowsybl.py @@ -14,7 +14,7 @@ from typing import Optional, Union from packaging import version -PP_BUG_RATIO_TAP_CHANGER = version.parse("1.7.0") +PP_BUG_RATIO_TAP_CHANGER = version.parse("1.9.0") PYPOWSYBL_VER = version.parse(pypo.__version__) from lightsim2grid_cpp import GridModel diff --git a/setup.py b/setup.py index 601a779..066687f 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from pybind11.setup_helpers import Pybind11Extension, build_ext -__version__ = "0.9.2" +__version__ = "0.9.2.post1" KLU_SOLVER_AVAILABLE = False # Try to link against SuiteSparse (if available) diff --git a/src/powerflow_algorithm/BaseAlgo.cpp b/src/powerflow_algorithm/BaseAlgo.cpp index 647dfa7..e663721 100644 --- a/src/powerflow_algorithm/BaseAlgo.cpp +++ b/src/powerflow_algorithm/BaseAlgo.cpp @@ -28,10 +28,10 @@ void BaseAlgo::reset(){ RealVect BaseAlgo::_evaluate_Fx(const Eigen::SparseMatrix & Ybus, - const CplxVect & V, - const CplxVect & Sbus, - const Eigen::VectorXi & pv, - const Eigen::VectorXi & pq) + const CplxVect & V, + const CplxVect & Sbus, + const Eigen::VectorXi & pv, + const Eigen::VectorXi & pq) { auto timer = CustTimer(); auto npv = pv.size();