Skip to content

Commit 009430c

Browse files
authored
Merge pull request #452 from RoseauTechnologies/develop
Version 0.14.1
2 parents 18b1fbe + 4502583 commit 009430c

49 files changed

Lines changed: 1631 additions & 1437 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
ROSEAU_LOAD_FLOW_LICENSE_KEY: ${{ secrets.ROSEAU_LOAD_FLOW_LICENSE_KEY }}
7676

7777
- name: Archive code coverage results
78-
uses: actions/upload-artifact@v6
78+
uses: actions/upload-artifact@v7
7979
if: ${{ always() }}
8080
with:
8181
name: code-coverage-report-${{ runner.os }}-python-${{ matrix.python-version }}

.pre-commit-config.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ repos:
1111
- id: end-of-file-fixer
1212
- id: trailing-whitespace
1313
- repo: https://github.com/astral-sh/uv-pre-commit
14-
rev: 0.9.26
14+
rev: 0.11.7
1515
hooks:
1616
- id: uv-lock
1717
- repo: https://github.com/python-jsonschema/check-jsonschema
18-
rev: 0.36.0
18+
rev: 0.37.1
1919
hooks:
2020
- id: check-github-workflows
2121
- id: check-dependabot
2222
- id: check-readthedocs
2323
- repo: https://github.com/adhtruong/mirrors-typos
2424
# See https://github.com/crate-ci/typos/issues/390
2525
# repo: https://github.com/crate-ci/typos
26-
rev: v1.42.1
26+
rev: v1.45.1
2727
hooks:
2828
- id: typos
2929
args: [--force-exclude]
3030
- repo: https://github.com/woodruffw/zizmor-pre-commit
31-
rev: v1.22.0
31+
rev: v1.24.1
3232
hooks:
3333
- id: zizmor
3434
- repo: https://github.com/astral-sh/ruff-pre-commit
35-
rev: v0.14.13
35+
rev: v0.15.11
3636
hooks:
3737
- id: ruff-check
3838
args: [--fix]
@@ -57,30 +57,30 @@ repos:
5757
- mdformat-deflist
5858
exclude: ^.github/.*\.md$
5959
- repo: https://github.com/rbubley/mirrors-prettier
60-
rev: v3.8.0
60+
rev: v3.8.3
6161
hooks:
6262
- id: prettier
6363
args: ["--print-width", "120"]
6464
require_serial: true
6565
types_or: [yaml]
6666
- repo: https://github.com/cmhughes/latexindent.pl
67-
rev: V3.24.7
67+
rev: V4.0
6868
hooks:
6969
- id: latexindent
7070
args: [-l, -m, -s, -wd]
7171
- repo: https://github.com/biomejs/pre-commit
72-
rev: v2.3.11
72+
rev: v2.4.12
7373
hooks:
7474
- id: biome-check
7575
types_or: [json, html, css]
7676
files: ".*" # Override default files regex that excludes html, rely on `types_or` instead
7777
- repo: https://github.com/tombi-toml/tombi-pre-commit
78-
rev: v0.7.19
78+
rev: v0.9.21
7979
hooks:
8080
- id: tombi-format
8181
- id: tombi-lint
8282
- repo: https://github.com/oxipng/oxipng
83-
rev: v10.0.0
83+
rev: v10.1.1
8484
hooks:
8585
- id: oxipng
8686
args: ["-o", "4", "--strip", "safe", "--alpha"]

biome.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.12/schema.json",
33
"vcs": {
44
"enabled": false,
55
"clientKind": "git",

doc/Changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ og:description: See what's new in the latest release of Roseau Load Flow !
1919

2020
# Changelog
2121

22+
## Version 0.14.1
23+
24+
- {gh-pr}`451` Plot switches that are represented as lines in the interactive map plots.
25+
- {gh-pr}`449` Fix wrong unit of no-load current of some transformers in the catalogue.
26+
- {gh-pr}`447` Fix serialization to JSON when the `Switch` constructor gets a numpy bool as the `closed` argument.
27+
- {gh-pr}`440` Add switch `closed` status to the network's switches dataframe and graph representation.
28+
- {gh-pr}`439` Fix repr string of `rlf.GroundConnection`
29+
2230
## Version 0.14.0
2331

2432
- {gh-pr}`435` {gh-issue}`436` Add `rlf.converters.kron_reduction` function to perform Kron reduction on any nxn matrix

doc/Installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $ python -m pip install roseau-load-flow
4747
````
4848

4949
`````{tip}
50-
It is recommended to work in a virtual environment to isolate your project. Create and activate a virtual environment
50+
Working in a virtual environment is recommended to isolate your project. Create and activate a virtual environment
5151
before installing the package. You can create one with:
5252
5353
````{tab} Windows

doc/_static/Ground.svg

Lines changed: 1 addition & 1 deletion
Loading

doc/advanced/Floating_Neutral.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ electrical components. As a result, some appliances may receive excessive voltag
2424
power. In severe cases, outlets can become dangerously energized with full phase-to-phase voltage, posing a significant
2525
risk of equipment damage, electric shock, or fire.
2626

27-
With a perfectly balanced load, the neutral current is zero and the neutral voltage is zero as well. With an unbalanced
28-
load, the neutral current is non-zero. In this case, it is the role of the neutral to balance the voltage across the
29-
electrical phases. In a floating neutral situation, the phase-to-phase voltages remain normal, but the 0V reference of
30-
the neutral gets lost. The larger the load imbalance, the more serious the issue becomes.
27+
With a perfectly balanced load, both the neutral current and voltage are zero. With an unbalanced load, the neutral
28+
current is non-zero. In this case, it is the role of the neutral to balance the voltage across the electrical phases. In
29+
a floating neutral situation, the phase-to-phase voltages remain normal, but the 0V reference of the neutral gets lost.
30+
The larger the load imbalance, the more serious the issue becomes.
3131

3232
## Modelling floating neutral in Roseau Load Flow
3333

doc/advanced/Solvers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ myst:
2020
## General information
2121

2222
The goal is to compute the voltages at each bus and the currents and powers flow in each branch of the network. The
23-
computation must respect the Kirchhoff's laws and the constraints of the network.
23+
computation must respect Kirchhoff's laws and the constraints of the network.
2424

2525
More formally, this is done by solving a system of $n$ nonlinear equations with $n$ variables:
2626

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# The full version, including alpha/beta/rc tags
2727
version = "0.14"
28-
release = "0.14.0"
28+
release = "0.14.1"
2929

3030
# -- General configuration ---------------------------------------------------
3131

doc/images/Ground.tex

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
11
\input{Preamble}%
22

33
\begin{document}
4-
\ctikzset{european, straight voltages, cute inductors}%
4+
\ctikzset{european, straight voltages, cute inductors, label/align=straight}%
55
\begin{tikzpicture}[%
66
show background rectangle,%
77
tight background,%
88
background rectangle/.style={fill=white}%
99
]
1010

11-
\coordinate (g) at (0,0);
11+
\coordinate (g) at (0,0);%
12+
\coordinate (g top) at (0,1.5);%
1213
\node[ground] at (g) {};%
1314
\node[left] at (g) {$\underline{V_{\grm}}$};%
14-
\draw (0, 1) to[short, i=$\underline{I_{\grm}}$, -*] (g);
15+
\draw (g top) to[short, i=$\underline{I_{\grm}}$, *-*] (g);
16+
17+
\draw (g top) ++(155:1.25) coordinate (v1 bottom) ++(155:2) coordinate (v1);%
18+
\node[above] at (v1) {$\underline{V_1}$};%
19+
\draw (v1) to[generic, l_=$\underline{Z_1}$, *-] (v1 bottom) %
20+
to[short, i_=$\underline{I_1}$, current/distance=0.2] (g top);%
21+
22+
\draw (g top) ++(125:1.25) coordinate (v2 bottom) ++(125:2) coordinate (v2);%
23+
\node[above] at (v2) {$\underline{V_2}$};%
24+
\draw (v2) to[generic, l_=$\underline{Z_2}$, *-] (v2 bottom)%
25+
to[short, i=$\underline{I_2}$, current/distance=0.2] (g top);%
26+
27+
\draw (g top) ++(55:1.25) coordinate (vkm1 bottom) ++(55:2) coordinate (vkm1);%
28+
\node[above] at (vkm1) {$\underline{V_{k-1}}$};%
29+
\draw (vkm1) to[generic,l=$\underline{Z_{k-1}}$, *-] (vkm1 bottom) %
30+
to[short, i_=$\underline{I_{k-1}}$, current/distance=0.2] (g top);%
31+
32+
\draw (g top) ++(25:1.25) coordinate (vk bottom) ++(25:2) coordinate (vk);%
33+
\node[above] at (vk) {$\underline{V_k}$};%
34+
\draw (vk) to[generic,l=$\underline{Z_k}$, *-] (vk bottom) %
35+
to[short, i=$\underline{I_k}$, current/distance=0.2] (g top);%
36+
37+
\draw[->,-{Latex[]}, dashed] (g top) +(120:3) arc (120:60:3);%
1538

1639
\end{tikzpicture}
1740
\end{document}

0 commit comments

Comments
 (0)