PyOpenMagnetics 1.7.2__tar.gz → 1.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/.github/workflows/publish.yml +9 -7
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/CMakeLists.txt +1 -1
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/PKG-INFO +1 -1
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/pyproject.toml +1 -1
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/.github/workflows/ci.yml +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/.gitignore +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/AGENTS.md +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/LICENSE +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/PyOpenMagnetics.pyi +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/README.md +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/_packaging/__init__.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/_packaging/_build_info.py.in +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/api/MAS.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/api/mas_db_reader.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/api/validation.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/clear_cibuildwheel_cache.sh +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/docs/compatibility.md +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/docs/errors.md +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/docs/performance.md +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/README.md +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/buck_inductor.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/complete_simulation_example.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/converter_design_example.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/debug_bobbin.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/debug_coil.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/debug_core.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/debug_plotting.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/flyback_220v_12v_1a.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/flyback_220v_12v_2a_complete.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/flyback_bh_curve.png +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/flyback_core.png +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/flyback_design.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/flyback_summary.png +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/flyback_waveforms.png +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/list_plot_funcs.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/plot_flyback_design.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/plot_flyback_pyom.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/test_field_calc.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/examples/test_field_plot.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/force_fresh_build.sh +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/llms.txt +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/notebooks/01_getting_started.ipynb +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/notebooks/02_buck_inductor.ipynb +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/notebooks/03_core_losses.ipynb +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/notebooks/README.md +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/requirements.txt +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/advisers.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/advisers.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/bobbin.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/bobbin.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/cmc.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/cmc.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/common.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/converter.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/converter.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/core.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/core.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/crossref.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/crossref.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/database.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/database.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/logging.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/logging.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/losses.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/losses.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/module.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/plotting.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/plotting.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/settings.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/settings.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/simulation.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/simulation.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/utils.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/utils.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/winding.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/winding.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/wire.cpp +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/src/wire.h +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/test.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/__init__.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/conftest.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_converter_endpoints.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_core.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_core_adviser.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_examples_integration.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_inputs.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_logging.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_magnetic_adviser.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_magnetics_catalogue_load.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_plotting.py +0 -0
- {pyopenmagnetics-1.7.2 → pyopenmagnetics-1.7.4}/tests/test_winding.py +0 -0
|
@@ -3,6 +3,8 @@ name: Build and Publish to PyPI
|
|
|
3
3
|
on:
|
|
4
4
|
release:
|
|
5
5
|
types: [published]
|
|
6
|
+
push:
|
|
7
|
+
tags: ['v*'] # a pushed version tag publishes straight to PyPI (no release object needed)
|
|
6
8
|
workflow_dispatch: # Allow manual trigger for testing
|
|
7
9
|
inputs:
|
|
8
10
|
skip_macos:
|
|
@@ -38,7 +40,7 @@ jobs:
|
|
|
38
40
|
url: https://pypi.org/p/pyopenmagnetics
|
|
39
41
|
permissions:
|
|
40
42
|
id-token: write # Required for trusted publishing
|
|
41
|
-
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
|
43
|
+
if: github.event_name == 'release' || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
|
42
44
|
|
|
43
45
|
steps:
|
|
44
46
|
- uses: actions/checkout@v4
|
|
@@ -128,7 +130,7 @@ jobs:
|
|
|
128
130
|
CIBW_TEST_COMMAND: python -c "import PyOpenMagnetics; print(f'PyOpenMagnetics loaded successfully with {len(dir(PyOpenMagnetics))} functions')"
|
|
129
131
|
|
|
130
132
|
- name: Publish Linux wheels to PyPI
|
|
131
|
-
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi)
|
|
133
|
+
if: github.event_name == 'release' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi)
|
|
132
134
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
133
135
|
with:
|
|
134
136
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -158,7 +160,7 @@ jobs:
|
|
|
158
160
|
url: https://pypi.org/p/pyopenmagnetics
|
|
159
161
|
permissions:
|
|
160
162
|
id-token: write # Required for trusted publishing
|
|
161
|
-
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
|
163
|
+
if: github.event_name == 'release' || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
|
162
164
|
|
|
163
165
|
steps:
|
|
164
166
|
- uses: actions/checkout@v4
|
|
@@ -210,7 +212,7 @@ jobs:
|
|
|
210
212
|
run: python -m pip install twine
|
|
211
213
|
|
|
212
214
|
- name: Publish Windows wheels to PyPI
|
|
213
|
-
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi)
|
|
215
|
+
if: github.event_name == 'release' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi)
|
|
214
216
|
run: python -m twine upload --skip-existing wheelhouse/*.whl
|
|
215
217
|
env:
|
|
216
218
|
TWINE_USERNAME: __token__
|
|
@@ -301,7 +303,7 @@ jobs:
|
|
|
301
303
|
run: python -m pip install twine
|
|
302
304
|
|
|
303
305
|
- name: Publish macOS wheels to PyPI
|
|
304
|
-
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi)
|
|
306
|
+
if: github.event_name == 'release' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi)
|
|
305
307
|
run: python -m twine upload --skip-existing wheelhouse/*.whl
|
|
306
308
|
env:
|
|
307
309
|
TWINE_USERNAME: __token__
|
|
@@ -323,7 +325,7 @@ jobs:
|
|
|
323
325
|
url: https://pypi.org/p/pyopenmagnetics
|
|
324
326
|
permissions:
|
|
325
327
|
id-token: write # Required for trusted publishing
|
|
326
|
-
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
|
328
|
+
if: github.event_name == 'release' || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
|
327
329
|
|
|
328
330
|
steps:
|
|
329
331
|
- uses: actions/checkout@v4
|
|
@@ -366,7 +368,7 @@ jobs:
|
|
|
366
368
|
run: python -m build --sdist
|
|
367
369
|
|
|
368
370
|
- name: Publish sdist to PyPI
|
|
369
|
-
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi)
|
|
371
|
+
if: github.event_name == 'release' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi)
|
|
370
372
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
371
373
|
with:
|
|
372
374
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -142,7 +142,7 @@ if(NOT LOCAL_MKF_MAS)
|
|
|
142
142
|
set(MKF_GIT_TAG "main"
|
|
143
143
|
CACHE STRING "MKF git ref for the vendored PyOM build")
|
|
144
144
|
# Force fresh clone by using a unique timestamp - update this when the pin changes
|
|
145
|
-
set(MKF_FORCE_REFRESH "2026-08-
|
|
145
|
+
set(MKF_FORCE_REFRESH "2026-08-23-v1.7.4-mkf-479170ce")
|
|
146
146
|
# Tell MKF to disable matplotplusplus and use SVG-based Painter instead
|
|
147
147
|
set(INCLUDE_PYMKF ON CACHE BOOL "Build Python interface" FORCE)
|
|
148
148
|
# GIT_SUBMODULES_RECURSE pulls in CAS/PEAS (added 2026-04 alongside the
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|