PyOpenMagnetics 1.1.3__cp310-cp310-win_amd64.whl → 1.1.4__cp310-cp310-win_amd64.whl

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.
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: PyOpenMagnetics
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: Python wrapper for OpenMagnetics
5
5
  Author-Email: Alfonso Martinez <Alfonso_VII@hotmail.com>
6
6
  Classifier: Development Status :: 4 - Beta
@@ -121,12 +121,13 @@ processed_inputs = PyOpenMagnetics.process_inputs(inputs)
121
121
 
122
122
  # Get magnetic recommendations
123
123
  # core_mode: "available cores" (stock cores) or "standard cores" (all standard shapes)
124
- magnetics = PyOpenMagnetics.calculate_advised_magnetics(processed_inputs, 5, "standard cores")
124
+ result = PyOpenMagnetics.calculate_advised_magnetics(processed_inputs, 5, "standard cores")
125
125
 
126
- for i, mag in enumerate(magnetics):
127
- if "magnetic" in mag:
128
- core = mag["magnetic"]["core"]["functionalDescription"]
129
- print(f"{i+1}. {core['shape']['name']} - {core['material']['name']}")
126
+ # Result format: {"data": [{"mas": {...}, "scoring": float, "scoringPerFilter": {...}}, ...]}
127
+ for i, item in enumerate(result["data"]):
128
+ mag = item["mas"]["magnetic"]
129
+ core = mag["core"]["functionalDescription"]
130
+ print(f"{i+1}. {core['shape']['name']} - {core['material']['name']} (score: {item['scoring']:.3f})")
130
131
  ```
131
132
 
132
133
  ### Calculate Core Losses
@@ -1,10 +1,10 @@
1
1
  include/pybind11_json/pybind11_json.hpp,sha256=ycNMrjBBpmzNwIuszG-Ni7YWHzHHCivVvNzvgEBNk14,8095
2
- PyOpenMagnetics.cp310-win_amd64.pyd,sha256=T_VWqhKVTxMADhF7lAtWnCYKTl4vPSFIWtB07CAuWoY,19548160
2
+ PyOpenMagnetics.cp310-win_amd64.pyd,sha256=uhQS1-w2InrqE74ShEwWwTx5yj19OoaS0TTcfrN3ip0,19549184
3
3
  share/cmake/pybind11_json/pybind11_jsonConfig.cmake,sha256=yqt4qHnKv1yQ3mG7vu4zmPMDXQQ0GZUXwt0yr8_Epic,2058
4
4
  share/cmake/pybind11_json/pybind11_jsonConfigVersion.cmake,sha256=wJpbsnHNM9IdCw8SYdh07PgYQyMH_p9E6374xgrfpo4,1435
5
5
  share/cmake/pybind11_json/pybind11_jsonTargets.cmake,sha256=2YDTY75tk0daY1uvV7Rw6Ph0Od4BCcMaaB7mxapP8-0,4227
6
6
  share/pkgconfig/pybind11_json.pc,sha256=1IIOiR0JKkuoiENHuuHk9KRG6VuMfTQuMjwZFHvWp1A,147
7
- pyopenmagnetics-1.1.3.dist-info/METADATA,sha256=QOgfLXN7Vpi39kS4a2WJYh49nBu0yEJbYXc8P1AOeUM,12141
8
- pyopenmagnetics-1.1.3.dist-info/WHEEL,sha256=hrGeChGtn46HBGmzasO9QQDSLelRN-tUarBSv4gFcsI,106
9
- pyopenmagnetics-1.1.3.dist-info/licenses/LICENSE,sha256=n5beBRUVTrqihyXW7-COpKNiKVZiNzdYn9yUGtLcvZE,1091
10
- pyopenmagnetics-1.1.3.dist-info/RECORD,,
7
+ pyopenmagnetics-1.1.4.dist-info/METADATA,sha256=Gwc6lzUlqcEBO6NxgIy3lROSitQngCW2867foVxZZyk,12257
8
+ pyopenmagnetics-1.1.4.dist-info/WHEEL,sha256=hrGeChGtn46HBGmzasO9QQDSLelRN-tUarBSv4gFcsI,106
9
+ pyopenmagnetics-1.1.4.dist-info/licenses/LICENSE,sha256=n5beBRUVTrqihyXW7-COpKNiKVZiNzdYn9yUGtLcvZE,1091
10
+ pyopenmagnetics-1.1.4.dist-info/RECORD,,