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

ARM64 MacOS build #782

Merged
merged 50 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
b3dbdb8
ARM64 MacOS build
geofjamg Jun 26, 2024
601fb89
Merge branch 'main' into arm64_macos_build
EtienneLt Jun 26, 2024
732e38a
Clean doc setup
geofjamg Jun 26, 2024
0a00dde
remove deprecated attributes in network modification functions (#732)
colinepiloquet Jun 26, 2024
5147126
add Sld parameters in doc (#775)
unetablettedechocolat Jun 26, 2024
845cfa7
Upgrade to PowSyBl 2024.1.2 (#783)
geofjamg Jun 26, 2024
6bc59be
Clean doc setup
geofjamg Jun 26, 2024
3c8138f
Fix
geofjamg Jun 26, 2024
cab3479
Merge branch 'clean_doc_setup' into arm64_macos_build
geofjamg Jun 26, 2024
62e9d6e
Merge branch 'main' into arm64_macos_build
EtienneLt Jun 26, 2024
b20de25
Fix
geofjamg Jun 26, 2024
3fe68e7
Fix
geofjamg Jun 26, 2024
7db123b
Fix
geofjamg Jun 26, 2024
506f097
Fix
geofjamg Jun 26, 2024
5b8db23
Merge branch 'main' into arm64_macos_build
EtienneLt Jun 27, 2024
94ac540
Add support of dc_power_factor Load Flow Parameter (#756)
jeandemanged Jul 1, 2024
8eb45d6
Fix CI manylinux (#794)
jeandemanged Jul 1, 2024
a1e4934
Add DanglingLine boundary side P, Q, Vmag, Vangle (#792)
jeandemanged Jul 1, 2024
284e7b2
adding documentation for reduce function (#791)
EtienneLt Jul 2, 2024
194da23
Add get_matrix_multi_substation_single_line_diagram (#781)
unetablettedechocolat Jul 2, 2024
8e026fd
Bump to v1.6.0
HugoKulesza Jul 2, 2024
667e33a
Bump to v1.7.0-SNAPSHOT
HugoKulesza Jul 2, 2024
8b37e3e
Adding current feeder info parameter for SLD (#785)
unetablettedechocolat Jul 8, 2024
30e9fce
Fix CI : regain compatibility with node16 for the CI (#798)
HugoKulesza Jul 9, 2024
7ff51df
Fix Windows CI : set matplotlib to 3.9.0 for python > 3.8 (#801)
HugoKulesza Jul 11, 2024
61e2d2e
Fix MSVC runtime binaries incompatibility issues (#803)
obrix Jul 15, 2024
d11835f
Do not use a constructor triggering a c++ call from within a default …
obrix Jul 16, 2024
1d33f22
Fix multi substation sld svg (#797)
CBiasuzzi Jul 16, 2024
8b7fd96
add documentation for hvdc lines (#805)
EtienneLt Jul 16, 2024
40211b0
Rename enum related to ampl logging (#812)
obrix Jul 30, 2024
5e14bee
Make pairing key of dangling lines updatable (#811)
colinepiloquet Jul 30, 2024
a99ff10
Display units feeder info (#799)
unetablettedechocolat Jul 31, 2024
7e29608
Allows empty strings in the multi-substation SLD functions' matrix pa…
CBiasuzzi Jul 31, 2024
a2fd021
Add initial voltage plan parameter for short-circuit analysis (#809)
colinepiloquet Jul 31, 2024
3dd057a
Add attribute "paired" for dangling lines (#815)
EtienneLt Aug 6, 2024
bdf42a9
Wip
geofjamg Aug 27, 2024
3b67cfa
Merge branch 'main' into arm64_macos_build
geofjamg Aug 27, 2024
baf16cd
Wip
geofjamg Aug 27, 2024
94bedba
Wip
geofjamg Aug 27, 2024
60e657a
Wip
geofjamg Aug 27, 2024
eb028b1
Wip
geofjamg Aug 27, 2024
6d9c1f4
Wip
geofjamg Aug 27, 2024
1b14ed7
Wip
geofjamg Aug 27, 2024
676e00d
Wip
geofjamg Aug 27, 2024
98979f0
Wip
geofjamg Aug 27, 2024
0cef85b
Wip
geofjamg Aug 27, 2024
0950d79
Wip
geofjamg Aug 27, 2024
c52be1d
Wip
geofjamg Aug 27, 2024
43a15b7
Merge branch 'main' into arm64_macos_build
geofjamg Aug 27, 2024
745b17e
Merge branch 'main' into arm64_macos_build
HugoKulesza Aug 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ jobs:
- {
name: darwin,
os: macos-12,
macosx_deployment_target: "10.16", # to ensure pip finds wheel when Big Sur is configured to return 10.16 as version instead of 11.0
bdist_wheel_args: "--plat-name macosx-11.0-x86_64", # needed to avoid the wheel to be named -universal2
}
- {
name: darwin-arm64,
os: macos-14,
macosx_deployment_target: "11", # first arm64 version of macosx
bdist_wheel_args: "--plat-name macosx-11.0-arm64", # needed to avoid the wheel to be named -universal2
}
- {
name: windows,
Expand Down Expand Up @@ -139,8 +147,8 @@ jobs:

- name: Build wheel
env:
MACOSX_DEPLOYMENT_TARGET: "10.16" # to ensure pip finds wheel when Big Sur is configured to return 10.16 as version instead of 11.0
run: python setup.py bdist_wheel
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.config.macosx_deployment_target }}
run: python setup.py bdist_wheel ${{ matrix.config.bdist_wheel_args }}

- name: Install wheel
shell: bash
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ jobs:
- {
name: darwin,
os: macos-12,
macosx_deployment_target: "10.16", # to ensure pip finds wheel when Big Sur is configured to return 10.16 as version instead of 11.0
bdist_wheel_args: "--plat-name macosx-11.0-x86_64", # needed to avoid the wheel to be named -universal2
}
- {
name: darwin-arm64,
os: macos-14,
macosx_deployment_target: "11", # first arm64 version of macosx
bdist_wheel_args: "--plat-name macosx-11.0-arm64", # needed to avoid the wheel to be named -universal2
}
- {
name: windows,
Expand Down Expand Up @@ -185,8 +193,8 @@ jobs:

- name: Build wheel
env:
MACOSX_DEPLOYMENT_TARGET: "10.16" # to ensure pip finds wheel when Big Sur is configured to return 10.16 as version instead of 11.0
run: python setup.py bdist_wheel
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.config.macosx_deployment_target }}
run: python setup.py bdist_wheel ${{ matrix.config.bdist_wheel_args }}

- name: Install wheel
shell: bash
Expand Down
21 changes: 14 additions & 7 deletions docs/user_guide/flowdecomposition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,21 +182,28 @@ To illustrate X node flow, we need a network with unmerged x nodes.
Those x nodes might represent HVDCs, outside countries, etc.
Merged X nodes will not be considered here.

.. doctest::
.. testsetup:: flowdecomposition.unmerged

pd.options.display.float_format = '{:,.3f}'.format

.. doctest:: flowdecomposition.unmerged
:options: +NORMALIZE_WHITESPACE

>>> network = pp.network.load(DATA_DIR.joinpath('19700101_0000_FO4_UX1.uct'))
>>> flow_decomposition = pp.flowdecomposition.create_decomposition().add_interconnections_as_monitored_elements()
>>> flow_decomposition.run(network)
branch_id contingency_id country1 country2 ac_reference_flow dc_reference_flow commercial_flow x_node_flow pst_flow internal_flow loop_flow_from_be loop_flow_from_de loop_flow_from_fr
xnec_id
XBD00011 BD000011 1 + XBD00011 DB000011 1 XBD00011 BD000011 1 + XBD00011 DB000011 1 BE DE 121.821917 124.685261 171.516849 -33.155274 2.951653 0.0 0.226369 -8.994903e-09 -16.854336
XBD00012 BD000011 1 + XBD00012 DB000011 1 XBD00012 BD000011 1 + XBD00012 DB000011 1 BE DE 121.821917 124.685261 171.516849 -33.155274 2.951653 0.0 0.226369 -8.994903e-09 -16.854336
XBF00011 BF000011 1 + XBF00011 FB000011 1 XBF00011 BF000011 1 + XBF00011 FB000011 1 BE FR -775.578124 -764.445217 679.262024 170.472453 7.112098 0.0 -124.052946 -6.713719e-09 31.651588
XBF00021 BF000021 1 + XBF00021 FB000021 1 XBF00021 BF000021 1 + XBF00021 FB000021 1 BE FR -234.032855 -242.462652 169.385837 44.108499 -0.604396 0.0 62.252842 -1.954504e-09 -32.680130
XBF00022 BF000021 1 + XBF00022 FB000022 1 XBF00022 BF000021 1 + XBF00022 FB000022 1 BE FR -234.032855 -242.462652 169.385837 44.108499 -0.604396 0.0 62.252842 -1.954504e-09 -32.680130
XDF00011 DF000011 1 + XDF00011 FD000011 1 XDF00011 DF000011 1 + XDF00011 FD000011 1 DE FR -1156.356167 -1150.629478 906.966302 216.310548 -5.903306 0.0 -0.452738 -2.032061e-08 33.708672
XBD00011 BD000011 1 + XBD00011 DB000011 1 XBD00011 BD000011 1 + XBD00011 DB000011 1 BE DE 121.822 124.685 171.517 -33.155 2.952 0.000 0.226 -0.000 -16.854
XBD00012 BD000011 1 + XBD00012 DB000011 1 XBD00012 BD000011 1 + XBD00012 DB000011 1 BE DE 121.822 124.685 171.517 -33.155 2.952 0.000 0.226 -0.000 -16.854
XBF00011 BF000011 1 + XBF00011 FB000011 1 XBF00011 BF000011 1 + XBF00011 FB000011 1 BE FR -775.578 -764.445 679.262 170.472 7.112 0.000 -124.053 -0.000 31.652
XBF00021 BF000021 1 + XBF00021 FB000021 1 XBF00021 BF000021 1 + XBF00021 FB000021 1 BE FR -234.033 -242.463 169.386 44.108 -0.604 0.000 62.253 -0.000 -32.680
XBF00022 BF000021 1 + XBF00022 FB000022 1 XBF00022 BF000021 1 + XBF00022 FB000022 1 BE FR -234.033 -242.463 169.386 44.108 -0.604 0.000 62.253 -0.000 -32.680
XDF00011 DF000011 1 + XDF00011 FD000011 1 XDF00011 DF000011 1 + XDF00011 FD000011 1 DE FR -1,156.356 -1,150.629 906.966 216.311 -5.903 0.000 -0.453 -0.000 33.709

.. testcleanup:: flowdecomposition.unmerged

pd.options.display.float_format = None

Adder functions
---------------
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ sphinx==7.1.2
furo==2024.1.29

# CI dependencies
wheel==0.38.1
setuptools==73.0.1
wheel==0.44.0
coverage==7.3.2
pytest>=6.2.5
mypy==0.982
Expand Down
Loading