Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.5.0 #124

Merged
merged 132 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
8be5f66
Dead link in Readme
benoit9126 Jun 4, 2023
4d8d115
Move changelog to add it in the doc
benoit9126 Jun 4, 2023
fea1963
Use nodejs 20
benoit9126 Jun 4, 2023
78e951b
Update changelog
benoit9126 Jun 4, 2023
a0c1f35
Add short circuits
Saelyos Jun 8, 2023
1fbad66
Remove absolufy-imports, use TID
Saelyos Jun 8, 2023
e58a7b7
Allow multiple phases for short-circuits
Saelyos Jun 8, 2023
e7cad46
Add short-circuit frame
Saelyos Jun 8, 2023
3f790d5
Update docstring
Saelyos Jun 8, 2023
b94b4f4
Merge pull request #92 from RoseauTechnologies/post-release-bug
benoit9126 Jun 8, 2023
853d9f1
Add checks for short circuit phases
Saelyos Jun 8, 2023
6e54bd4
Short circuit removal
Saelyos Jun 8, 2023
ae10ac4
Add short circuit notebooks
Saelyos Jun 9, 2023
d16a27c
Still more checks
Saelyos Jun 9, 2023
1dd7253
Add small note
Saelyos Jun 9, 2023
69dd54c
Add phase to ground default
Saelyos Jun 9, 2023
f3f9ffd
Add documentation for phase-to-ground
Saelyos Jun 9, 2023
2e517a2
Additional notes
Saelyos Jun 9, 2023
10f4b1b
Fix test
Saelyos Jun 9, 2023
303bd98
Multiple short circuits
Saelyos Jun 12, 2023
6ab12a9
Update doc
Saelyos Jun 13, 2023
b8c8994
Merge pull request #93 from RoseauTechnologies/short-circuit
Saelyos Jun 13, 2023
1c98ec0
Update pre-commit
benoit9126 Jun 23, 2023
6a76c4b
Correct mistake
benoit9126 Jun 23, 2023
b604155
Merge pull request #94 from RoseauTechnologies/update-pre-commit
benoit9126 Jun 27, 2023
76d88a3
Change delta loads orientation
Saelyos Jun 16, 2023
fb80e6a
Add models to documentation
Saelyos Jul 6, 2023
02a7f5b
Add single and split phase transformers
Saelyos Jul 11, 2023
6071bb1
Remove TransformerType
Saelyos Jul 12, 2023
98e97cb
Add more phase tests
Saelyos Jul 12, 2023
b74568a
Improve transformer type doc
Saelyos Jul 12, 2023
7e557dc
Fix phases check for split-phase secondary
Saelyos Jul 12, 2023
42aca9f
Renaming
Saelyos Jul 12, 2023
41306f6
Indentation
Saelyos Jul 12, 2023
7597c47
Merge pull request #96 from RoseauTechnologies/transformers
Saelyos Jul 12, 2023
51c453b
Avancement de la documentation
benoit9126 Jul 12, 2023
1b8703e
Mise à jour des dépendances
benoit9126 Jul 12, 2023
04bcb15
Do not hide function signature when using `ureg.wraps` (#98)
alihamdan Jul 13, 2023
faef060
Line documentation split
benoit9126 Jul 13, 2023
9ef27a7
Add note about getpass and Pycharm terminal emulation
alihamdan Jul 13, 2023
0d4abd8
Update models section in documentation
benoit9126 Jul 18, 2023
8ac82e8
Update changelog
benoit9126 Jul 18, 2023
a837a76
Add links to the documentation in docstring
benoit9126 Jul 18, 2023
91863f6
Merge branch 'develop' into documentation
benoit9126 Jul 18, 2023
d4ef177
American voltage error
benoit9126 Jul 20, 2023
c29f5d4
Update three-phase transformers doc
Saelyos Jul 24, 2023
a06fa0a
Add transformer models
Saelyos Jul 24, 2023
4d71924
Add notes
benoit9126 Jul 25, 2023
dc805e6
Rename center-tapped transformers
Saelyos Jul 25, 2023
68cd9f3
Use transformation ratio
Saelyos Jul 25, 2023
eceda73
Use the canonical name `roseau-load-flow` consistently
alihamdan Jul 19, 2023
ebbaae5
Use relative links to internal pages in the notebooks
alihamdan Jul 19, 2023
b93ffad
Improve the short circuit tutorial
alihamdan Jul 19, 2023
b11532a
Fix sphinx warnings
alihamdan Jul 25, 2023
54ae5a3
Improve the models documentation
alihamdan Jul 20, 2023
f93fdaf
Fix sign of american satndard center-tapped transformer
alihamdan Jul 25, 2023
3f49430
Fix dead links when cross referncing
alihamdan Jul 26, 2023
c3d1315
Add google analytics
benoit9126 Jul 26, 2023
3f50d23
Small doc corrections
benoit9126 Jul 26, 2023
e522cbd
Add the reference for the activation functions
benoit9126 Jul 26, 2023
4de7a62
Merge pull request #97 from RoseauTechnologies/documentation
alihamdan Jul 26, 2023
3dde16b
A few project configuration changes
alihamdan Jul 26, 2023
a61ed85
Add properties to get the line series and shunt currents (#102)
alihamdan Jul 27, 2023
1b6e887
Rename `Bus.short_circuit` to `add_short_circuit` (#103)
alihamdan Jul 27, 2023
be9b6cf
Remove BranchType and use strings instead (#104)
alihamdan Jul 28, 2023
503891b
Make internal class attributes private (#105)
alihamdan Jul 28, 2023
b491d71
Update non-euclidean projections
Saelyos Jul 31, 2023
57bd307
Fix changelog
Saelyos Jul 31, 2023
a602f7a
Minor fixes
alihamdan Jul 28, 2023
8ad660b
Merge pull request #106 from RoseauTechnologies/projections
Saelyos Jul 31, 2023
5f6d868
Make dgs available for engine
Saelyos Jul 31, 2023
5e9fe44
Merge pull request #107 from RoseauTechnologies/dgs
Saelyos Jul 31, 2023
d27ea0d
Documentation fixes (#108)
alihamdan Aug 1, 2023
0077343
Bump actions/upload-pages-artifact from 1 to 2
dependabot[bot] Aug 1, 2023
8c71aba
Merge pull request #109 from RoseauTechnologies/dependabot/github_act…
benoit9126 Aug 3, 2023
0de8ede
Temporarily disable problematic link in the docs (#110)
alihamdan Aug 4, 2023
142a9e1
Make geometry optional in dict
Saelyos Aug 7, 2023
b48c1ba
Update network parameter
Saelyos Aug 7, 2023
67b6fd3
Rename
Saelyos Aug 7, 2023
84a74c7
Add changelog
Saelyos Aug 7, 2023
9fc2b50
Merge pull request #112 from RoseauTechnologies/geometry
Saelyos Aug 7, 2023
97ec195
Error when accessing results of disconnected elements
benoit9126 Aug 8, 2023
c9ba5af
Merge pull request #113 from RoseauTechnologies/error-disconnected
benoit9126 Aug 8, 2023
1d618df
Update pint minimal requirement
benoit9126 Aug 8, 2023
d78cd86
Merge pull request #114 from RoseauTechnologies/pint-minimal-requirement
benoit9126 Aug 9, 2023
cf329b9
Short-circuit with dash
benoit9126 Aug 8, 2023
16fbc4c
Reformat tutorials in md files
benoit9126 Aug 8, 2023
9d06197
Delete the docker installation
benoit9126 Aug 9, 2023
f870a09
Improve the documentation GHA
benoit9126 Aug 9, 2023
162e85e
Corrections in the documentation
benoit9126 Aug 9, 2023
1ed0a23
Update the upgrade script
benoit9126 Aug 9, 2023
738a8da
Corrections
benoit9126 Aug 9, 2023
fa551a5
Remove docker installation screenshots
benoit9126 Aug 9, 2023
349cae9
Corrections
benoit9126 Aug 10, 2023
fcc0b2b
Merge pull request #115 from RoseauTechnologies/tutorials
benoit9126 Aug 10, 2023
e2d41dc
Catalogue of networks
benoit9126 Aug 10, 2023
517329b
Clean electrical network catalogue and print
benoit9126 Aug 10, 2023
607740e
Merge pull request #116 from RoseauTechnologies/catalogues
benoit9126 Aug 10, 2023
3e7d73c
Add prettier to pre-commit
benoit9126 Aug 10, 2023
13c6c62
Patch the README
benoit9126 Aug 10, 2023
3dbed5f
Merge pull request #117 from RoseauTechnologies/prettier
benoit9126 Aug 10, 2023
bf8343c
Close #95
benoit9126 Aug 11, 2023
4e29217
Corrections
benoit9126 Aug 11, 2023
624088a
Remove the from_name class method
benoit9126 Aug 11, 2023
e64815f
Add the filter id to the transformer catalogue
benoit9126 Aug 11, 2023
915401b
Add jacobian error
Saelyos Aug 14, 2023
19c5369
Merge pull request #118 from RoseauTechnologies/issue95
benoit9126 Aug 14, 2023
9fe4872
Add jacobian error
Saelyos Aug 14, 2023
98f03e1
Merge remote-tracking branch 'origin/jacobian-error' into jacobian-error
Saelyos Aug 16, 2023
32323bd
Update changelog
Saelyos Aug 16, 2023
af59251
Merge pull request #119 from RoseauTechnologies/jacobian-error
Saelyos Aug 16, 2023
59f7119
Fix autocompletion of loads and flexible params
alihamdan Aug 24, 2023
f6bb447
Fix phases of flexible power results
alihamdan Aug 24, 2023
7bb8cda
Merge pull request #120 from RoseauTechnologies/fix-flexible-powers
alihamdan Aug 24, 2023
23723e2
Update dependencies
benoit9126 Aug 23, 2023
885dada
Delete the LineModel class
benoit9126 Aug 23, 2023
c25eec5
Documentation of symmetric model
benoit9126 Aug 24, 2023
b802e77
Rename insulation into insulator
benoit9126 Aug 24, 2023
bb2d255
Rename from_lv_exact into from_geometry
benoit9126 Aug 24, 2023
111fbf5
Refactor from_geommetry
benoit9126 Aug 24, 2023
714c0ca
Update changelog
benoit9126 Aug 24, 2023
25d4600
More documentation on geometric models
benoit9126 Aug 25, 2023
d396604
Get rid of dimension in internal from_geometry
benoit9126 Aug 25, 2023
08046de
Allow U for S and O for A
benoit9126 Aug 25, 2023
213fa0f
Fill changelog
benoit9126 Aug 25, 2023
a6240d7
Remove the field model
benoit9126 Aug 25, 2023
97b0dfd
Corrections
benoit9126 Aug 25, 2023
714da4f
Last corrections
benoit9126 Aug 25, 2023
b261479
Merge pull request #121 from RoseauTechnologies/line-parameters
benoit9126 Aug 25, 2023
08ffa76
Shorter github links in the changelog (#123)
alihamdan Aug 25, 2023
2ab33c1
Bump version
benoit9126 Aug 29, 2023
ad423d2
Rich version for conda
benoit9126 Aug 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 0 additions & 10 deletions .dockerignore

This file was deleted.

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Bug report
about: Something is not working as expected
title: 'BUG: '
title: "BUG: "
labels: bug
assignees: benoit9126

---

**Describe the bug**
Expand All @@ -26,6 +25,7 @@ A clear and concise description of what you expected to happen.
**Version details**

Please copy/paste here the output of the function `show_versions`

```python
from roseau.load_flow import show_versions

Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/documentation-improvement.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Documentation Improvement
about: An improvement to the documentation
title: 'DOC: '
title: "DOC: "
labels: documentation
assignees: benoit9126

---

**Location of the document**
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: A proposal for a new feature
title: 'ENH: '
title: "ENH: "
labels: enhancement
assignees: benoit9126

---

**Describe the feature you want. What problem does it solve?**
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ name: CI

on:
push:
branches: [ main, develop ]
branches: [main, develop]
tags:
- '*'
- "*"
pull_request:
branches: [ main, develop ]
branches: [main, develop]

env:
CI: true

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -56,7 +55,7 @@ jobs:
- name: Install dependencies
run: |
poetry env use "${{ matrix.python-version }}"
poetry install --without dev,docker
poetry install --without dev

- name: Test with pytest
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ name: Conda

on:
push:
branches: [ main ]
branches: [main]
tags:
- '*'
- "*"
pull_request:
branches: [ main ]
branches: [main]

env:
CI: true

jobs:
build:

runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
python-version: [ "3.9" ]
python-version: ["3.9"]

steps:
- uses: actions/checkout@v3
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ name: Documentation

on:
push:
branches: [ "main", "develop" ]
branches: ["main", "develop"]
workflow_dispatch:
inputs:
forceDeploy:
description: "Deploy?"
required: true
default: false
type: boolean

permissions:
contents: read
Expand Down Expand Up @@ -70,20 +76,20 @@ jobs:
SPHINXBUILD: poetry run sphinx-build

- name: Upload pages artifact
if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/upload-pages-artifact@v1
if: ${{ github.ref == 'refs/heads/main' || inputs.forceDeploy == true }}
uses: actions/upload-pages-artifact@v2
with:
path: "build/html/"

- name: Upload artifact
uses: actions/upload-artifact@v3
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ !(github.ref == 'refs/heads/main' || inputs.forceDeploy == true) }}
with:
path: "build/html/"

# Deployment job
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' || inputs.forceDeploy == true }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: pre-commit

on:
push:
branches: [ main, develop ]
branches: [main, develop]
paths-ignore:
- ".vscode/**"
- ".idea/**"
tags:
- '*'
- "*"
pull_request:
branches: [ main, develop ]
branches: [main, develop]
paths-ignore:
- ".vscode/**"
- ".idea/**"
Expand Down
26 changes: 20 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-builtin-literals
- id: check-json
exclude: ^.vscode/
- id: check-merge-conflict
Expand All @@ -11,16 +12,29 @@ repos:
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
- repo: https://github.com/python-poetry/poetry
rev: 1.6.0
hooks:
- id: absolufy-imports
- repo: https://github.com/psf/black
rev: 23.3.0
- id: poetry-check
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.7.0 # keep in sync with pyproject.toml
hooks:
- id: black-jupyter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.270
rev: v0.0.286 # keep in sync with pyproject.toml
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
entry: bash -c "blacken-docs -l 90 $(find doc/ -name '*.md')"
args: [-l 90]
additional_dependencies: [black==23.7.0] # keep in sync with black above
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.2
hooks:
- id: prettier
args: ["--print-width", "120"]
84 changes: 41 additions & 43 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,43 @@
{
// Version of the setting file. Always 0.2
"version": "0.2",
// language - current active spelling language
"language": "en",
// words - list of words to be always considered correct
"words": [
"abcn",
"absolufy",
"asarray",
"astype",
"bysource",
"cython",
"dropna",
"dtype",
"furo",
"htmlcov",
"isort",
"mathjax",
"mathrm",
"nbsphinx",
"ndarray",
"nplin",
"phasor",
"pipx",
"pmatrix",
"pmax",
"pyproj",
"pyproject",
"pytest",
"pyupgrade",
"raphson",
"rtol",
"susceptance",
"transfo",
"ureg",
"yesqa"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": [
"hte"
]
// Version of the setting file. Always 0.2
"version": "0.2",
// language - current active spelling language
"language": "en",
// words - list of words to be always considered correct
"words": [
"abcn",
"absolufy",
"asarray",
"astype",
"bysource",
"cython",
"dropna",
"dtype",
"furo",
"htmlcov",
"isort",
"mathjax",
"mathrm",
"nbsphinx",
"ndarray",
"nplin",
"phasor",
"pipx",
"pmatrix",
"pmax",
"pyproj",
"pyproject",
"pytest",
"pyupgrade",
"raphson",
"rtol",
"susceptance",
"transfo",
"ureg",
"yesqa"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": ["hte"]
}
20 changes: 10 additions & 10 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"recommendations": [
"charliermarsh.ruff",
"ms-python.black-formatter",
"ms-python.python",
"ms-python.vscode-pylance",
],
"unwantedRecommendations": [
"ms-python.flake8", // We use ruff
"ms-python.isort", // We use ruff
]
"recommendations": [
"charliermarsh.ruff",
"ms-python.black-formatter",
"ms-python.python",
"ms-python.vscode-pylance"
],
"unwantedRecommendations": [
"ms-python.flake8", // We use ruff
"ms-python.isort" // We use ruff
]
}
42 changes: 23 additions & 19 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
{
// Jupyter
"jupyter.notebookFileRoot": "${workspaceFolder}",
// Jupyter Notebook
"jupyter.notebookFileRoot": "${workspaceFolder}",
"notebook.formatOnSave.enabled": true,
"notebook.codeActionsOnSave": {
"source.organizeImports.ruff": true
},

// Python
"python.analysis.diagnosticSeverityOverrides": {
"reportInvalidStringEscapeSequence": "warning",
"reportImportCycles": "warning",
"reportUnusedImport": "warning",
},
"python.formatting.provider": "none",
"python.testing.pytestArgs": [],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports.ruff": true,
},
},
// Python
"python.analysis.diagnosticSeverityOverrides": {
"reportInvalidStringEscapeSequence": "warning",
"reportImportCycles": "warning",
"reportUnusedImport": "warning"
},
"python.formatting.provider": "none",
"python.testing.pytestArgs": [],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports.ruff": true
}
}
}
Loading