-
Notifications
You must be signed in to change notification settings - Fork 0
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
Version 0.11.0 #294
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Activate License in Google Colab
DOC: ReadTheDoc
[DOC] Optimize svg
Use Rye intead of Poetry
…oseau.load_flow` for warnings (#273) An internal change that has no public effect except for better warning locations.
Backward forward
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.
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"
ENH: factorize some code
- 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
DOC: Download LFS files to build the documentation on ReadTheDoc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This release adds official support for Python 3.13 and adds a new experimental backward-forward solver.
Breaking changes
min_voltage
andmax_voltage
ofBus
have been replaced bynominal_voltage
(phase-to-phase,in V), a
min_voltage_level
(unitless) and amax_voltage_level
(unitless).type
parameter ofTransformerParameters
constructors becomesvg
for vector group. Replacetype="single"
byvg="Ii0"
andtype="center"
byvg="Iii0"
.type
attribute ofTransformerParameters
now returnsthree-phase
,single-phase
orcenter-tapped
. UseTransformerParameters.vg
to get the vector group.groups. Use
rlf.TransformerParameters.get_catalogue()
to see the updated catalogue.max_current
,section
,insulator_type
andconductor_type
parameters of theLineParameters
class are renamed to
ampacities
,sections
,insulators
andmaterials
respectively. The newparameters accept arrays of values, one per conductor.
InsulatorType.UNKNOWN
is removed. Please useNone
if the insulator is unknown.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
InsulatorType
andConductorType
are renamed toInsulator
andMaterial
respectively. Their old names are deprecated and will be removed in a future release.
LineParameters.from_name_mv
is removed.Detailed changes
Update documentation, fix lines and transformers loading #293 Fixed
loading
calculation for lines and transformersFix bugs in JSON serialization #291 Fixed several bugs in JSON serialization and deserialization.
Add more vector groups and more transformers to the catalogue #289 ENH: Add 15kV/410V transformers to the catalogue #264 Improve the
TransformerParameters
class and the transformers catalogueuhv
andulv
#282 to keep the IEC 600076 namesuhv
andulv
for the transformer voltages.type
parameter ofTransformerParameters
constructors byvg
for vector group.TransformerParameters.type
now returnsthree-phase
,single-phase
orcenter-tapped
. UseTransformerParameters.vg
to get vector group.ENH: Add
max_loading
on lines and transformers #285 ENH: Limit in asset (in addition to parameters) #279 Add maximum loading for lines and transformers.Transformer
andLine
now accept a unitlessmax_loading
parameter equalto 1 (=100%) by default.
max_currents
ofLineParameters
is now calledampacities
.Line
class gained a new propertymax_currents
that returns the maximal admissible currents(in Amps) for each conductor:
line.max_current = line.parameters.ampacity * line.max_loading
.res_violated
property ofTransformer
andLine
now take into account thismax_loading
.Line
andTransformer
classes have a newres_loading
property to compute the loading ofthe element:
line.res_loading = line.res_currents / line.parameters.ampacities
transformer.res_loading = sum(transformer.res_powers) / transformer.parameters.sn
ENH: Remove the deprecated
from_name_mv
method #286 The deprecated methodLineParameters.from_name_mv
is removed.Enhancements of
LineParameters
: arrays and new enumerated types #283 Several changes related to theLineParameters
:max_current
,section
,insulator_type
andconductor_type
parameters are renamed tomax_currents
,sections
,insulators
andmaterials
respectively. The new parameters acceptarrays of values, one per conductor.
from_geometry
now accepts several additional arguments related to the neutral(
material_neutral
,insulator_neutral
,max_current_neutral
)InsulatorType
andConductorType
are renamed toInsulator
andMaterial
.Their old names are deprecated and will be removed in a future release.
UNKNOWN
is removed. Please useNone
if the insulator is unknown.NONE
is added. It must be used to describe conductors without insulator.reactance, susceptance, material, insulator, maximal current). The
get_catalogue
and thefrom_catalogue
methods have been changed to accept filter on the columns (material_neutral
,insulator_neutral
,section_neutral
)ENH: Python 3.13 #281 Add official support for Python 3.13.
ENH: Nominal voltage of buses #278 Modify the voltage limits of buses #280 Modify the
Bus
voltage limits:min_voltage
andmax_voltage
parameters and attributes ofBus
have been replaced bynominal_voltage
(phase-to-phase, in V), amin_voltage_level
(unitless) and amax_voltage_level
(unitless).
Bus
gained a new propertyres_voltage_levels
that returns the voltage levels of the busas a percentage of the nominal voltage;
min_voltage
ormax_voltage
existed in a file of a previous version, they are lost when upgrading the file.Fix constant current loads definition #277 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.
Backward forward #276 Add a backward-forward solver (experimental).
Use uv #275 Use uv instead of Rye as dependency manager.
Dynamically calculate the stacklevel of the first frame outside of
roseau.load_flow
for warnings #273 Dynamically calculate the stacklevel of the first frame outside ofroseau.load_flow
for warningsFix segfault when phases of pref are not the same as the bus #272 BUG: Segmentation fault when potential reference phases are different from the bus's #271: Fix segfault when phases of a potential reference are not the same as the bus phases.
Use Rye intead of Poetry #270 Use Rye instead of Poetry as dependency manager.
[DOC] Optimize svg #269 Optimize the SVG files of the documentation.
DOC: ReadTheDoc #268 Set up ReadTheDoc to automatically compile the documentation.
Activate License in Google Colab #267 Add a section in the documentation on Google Colab secrets.