PyOpenMagnetics 1.7.21__tar.gz → 1.7.22__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.21 → pyopenmagnetics-1.7.22}/PKG-INFO +1 -1
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/pyproject.toml +1 -1
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/settings.cpp +3 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/.github/workflows/ci.yml +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/.github/workflows/publish.yml +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/.gitignore +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/AGENTS.md +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/CMakeLists.txt +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/LICENSE +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/PyOpenMagnetics.pyi +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/README.md +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/_packaging/__init__.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/_packaging/_build_info.py.in +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/api/MAS.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/api/mas_db_reader.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/api/validation.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/clear_cibuildwheel_cache.sh +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/docs/compatibility.md +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/docs/errors.md +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/docs/performance.md +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/README.md +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/buck_inductor.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/complete_simulation_example.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/converter_design_example.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/debug_bobbin.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/debug_coil.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/debug_core.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/debug_plotting.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/flyback_220v_12v_1a.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/flyback_220v_12v_2a_complete.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/flyback_bh_curve.png +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/flyback_core.png +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/flyback_design.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/flyback_summary.png +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/flyback_waveforms.png +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/list_plot_funcs.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/plot_flyback_design.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/plot_flyback_pyom.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/test_field_calc.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/examples/test_field_plot.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/force_fresh_build.sh +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/llms.txt +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/notebooks/01_getting_started.ipynb +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/notebooks/02_buck_inductor.ipynb +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/notebooks/03_core_losses.ipynb +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/notebooks/README.md +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/requirements.txt +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/advisers.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/advisers.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/bobbin.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/bobbin.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/cmc.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/cmc.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/common.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/converter.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/converter.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/core.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/core.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/crossref.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/crossref.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/database.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/database.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/logging.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/logging.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/losses.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/losses.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/module.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/plotting.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/plotting.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/settings.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/simulation.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/simulation.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/utils.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/utils.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/winding.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/winding.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/wire.cpp +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/src/wire.h +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/test.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/__init__.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/conftest.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_converter_endpoints.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_core.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_core_adviser.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_datasheet_only_catalogue.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_examples_integration.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_inputs.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_logging.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_magnetic_adviser.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_magnetics_catalogue_load.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_mas_schema_walk.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_plotting.py +0 -0
- {pyopenmagnetics-1.7.21 → pyopenmagnetics-1.7.22}/tests/test_winding.py +0 -0
|
@@ -190,6 +190,8 @@ json get_settings() {
|
|
|
190
190
|
// Harmonics
|
|
191
191
|
settingsJson["harmonicAmplitudeThresholdQuickMode"] = OpenMagnetics::settings.get_harmonic_amplitude_threshold_quick_mode();
|
|
192
192
|
settingsJson["harmonicAmplitudeThreshold"] = OpenMagnetics::settings.get_harmonic_amplitude_threshold();
|
|
193
|
+
// Memory kept for the turn-field sums of recently evaluated meshes (0 keeps nothing).
|
|
194
|
+
settingsJson["magneticFieldTurnSumsCacheBytes"] = OpenMagnetics::settings.get_magnetic_field_turn_sums_cache_bytes();
|
|
193
195
|
|
|
194
196
|
// Models
|
|
195
197
|
{
|
|
@@ -375,6 +377,7 @@ void set_settings(json settingsJson) {
|
|
|
375
377
|
// Harmonics
|
|
376
378
|
if (settingsJson.contains("harmonicAmplitudeThresholdQuickMode")) OpenMagnetics::settings.set_harmonic_amplitude_threshold_quick_mode(settingsJson["harmonicAmplitudeThresholdQuickMode"]);
|
|
377
379
|
if (settingsJson.contains("harmonicAmplitudeThreshold")) OpenMagnetics::settings.set_harmonic_amplitude_threshold(settingsJson["harmonicAmplitudeThreshold"]);
|
|
380
|
+
if (settingsJson.contains("magneticFieldTurnSumsCacheBytes")) OpenMagnetics::settings.set_magnetic_field_turn_sums_cache_bytes(settingsJson["magneticFieldTurnSumsCacheBytes"].get<size_t>());
|
|
378
381
|
|
|
379
382
|
// Models
|
|
380
383
|
if (settingsJson.contains("magneticFieldStrengthModel")) {
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|