diff --git a/.github/workflows/ci_checks.yml b/.github/workflows/ci_checks.yml index f0bdb4c..5d0b3f8 100644 --- a/.github/workflows/ci_checks.yml +++ b/.github/workflows/ci_checks.yml @@ -6,8 +6,7 @@ jobs: strategy: max-parallel: 6 matrix: - # python-version: ["3.8", "3.10", "3.13"] - python-version: ["3.13"] + python-version: ["3.10", "3.11", "3.13"] poetry-version: ["1.8"] os: [ubuntu-latest] runs-on: ${{ matrix.os }} diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 1023c41..9a1c3be 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.11"] poetry-version: ["1.4"] os: [ubuntu-latest] runs-on: ${{ matrix.os }} diff --git a/gym_anm/simulator/solve_load_flow.py b/gym_anm/simulator/solve_load_flow.py index 66158d6..92f25ec 100644 --- a/gym_anm/simulator/solve_load_flow.py +++ b/gym_anm/simulator/solve_load_flow.py @@ -213,13 +213,13 @@ def _newton_raphson_sparse(v_guess, p, q, Y, x_tol=1e-10, lim_iter=100): n_iter = 0 F = _f(v_guess, p, q, Y) - diff = norm(F, np.Inf) + diff = norm(F, np.inf) while diff > x_tol and n_iter < lim_iter: n_iter += 1 v_guess = v_guess - spsolve(_dfdx(v_guess, Y), F) F = _f(v_guess, p, q, Y) - diff = norm(F, np.Inf) + diff = norm(F, np.inf) converged = False if np.isnan(diff) else True