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.11.0 #294

Merged
merged 72 commits into from
Dec 2, 2024
Merged

Version 0.11.0 #294

merged 72 commits into from
Dec 2, 2024

Conversation

benoit9126
Copy link
Member

This release adds official support for Python 3.13 and adds a new experimental backward-forward solver.

Breaking changes

  • The min_voltage and max_voltage of Bus have been replaced by nominal_voltage (phase-to-phase,
    in V), a min_voltage_level (unitless) and a max_voltage_level (unitless).
  • The type parameter of TransformerParameters constructors becomes vg for vector group. Replace
    type="single" by vg="Ii0" and type="center" by vg="Iii0".
  • The type attribute of TransformerParameters now returns three-phase, single-phase or
    center-tapped. Use TransformerParameters.vg to get the vector group.
  • The names of the transformers in the catalogue have been modified to add voltage levels and vector
    groups. Use rlf.TransformerParameters.get_catalogue() to see the updated catalogue.
  • The max_current, section, insulator_type and conductor_type parameters of the LineParameters
    class are renamed to ampacities, sections, insulators and materials respectively. The new
    parameters accept arrays of values, one per conductor.
  • The enumeration InsulatorType.UNKNOWN is removed. Please use None if the insulator is unknown.
  • The definition of constant-current loads is modified to be the magnitudes of the currents and their
    phase shift from the voltages instead of the absolute phase shift. Currents should no longer be
    rotated by 120° to be in sync with the voltages.

Deprecations

  • The enumerated classes InsulatorType and ConductorType are renamed to Insulator and Material
    respectively. Their old names are deprecated and will be removed in a future release.
  • The deprecated method LineParameters.from_name_mv is removed.

Detailed changes

mullerlo and others added 30 commits September 16, 2024 14:57
…oseau.load_flow` for warnings (#273)

An internal change that has no public effect except for better warning
locations.
Fix the definition of constant current loads to be the magnitudes of the
currents and their phase shift from the voltages instead of the absolute
phase shift. Currents should no longer be rotated by 120° to be in sync
with the voltages.
benoit9126 and others added 25 commits November 19, 2024 11:39
Enhancements of `LineParameters`: arrays and new enumerated types
ENH: Remove the deprecated `from_name_mv` method
ENH: Add `max_loading` on lines and transformers
ENH: LineParameters contains 4x4 matrices
Revert "ENH: LineParameters contains 4x4 matrices"
- Change the `type` parameter of `TransformerParameters` to `vg` to
allow vector groups for single-phase and center-tapped transformers
- Add 15kV transformers to the catalogue (SE and FT)
- Add single-phase transformers to the catalogue (Schneider Imprego)
- Add step-up transformers to the catalogue (Cahors "Serie Jaune")
- Modify the names of the transformers in the catalogue to add voltage
levels and vector groups
- Use the correct LV side no-load voltage as defined in the datasheets
(some 400V became 410V)
Found and fixed the following bugs:
- Fix version checks in `network_from_dict`
- Emit proper warning for older versions
- Add missing `max_loading` for lines
- Add missing `max_loading` for transformers
- Add missing `tap` for transformers
- Fix error due to sorting of line parameters and transformer parameters
  with heterogeneous ID types
- Fix conversion of `single` and `center` transformer types to proper
  vector groups
- Fix upgrading of `max_current`, `conductor_type`, and `insulator_type`
  of line parameters

These bugs were found with testing more comprehensive JSON files.
Added files for all JSON versions and the corresponding file generator
scripts.

Also added a test to ensure these files do not get modified by mistake
when refactoring the code base.
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 3 to 4.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@v3...v4)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…ions/develop/astral-sh/setup-uv-4

Bump astral-sh/setup-uv from 3 to 4
- Update the README (remove mention of SaaS)
- Update the changelog with a clear breaking changes section
- Fix the calculation of lines and transformers loading
@benoit9126 benoit9126 added the enhancement New feature or request label Dec 2, 2024
@benoit9126 benoit9126 self-assigned this Dec 2, 2024
DOC: Download LFS files to build the documentation on ReadTheDoc
@benoit9126 benoit9126 merged commit ea15961 into main Dec 2, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants