Magpylib

Latest version: v5.0.0

Safety actively analyzes 613631 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

5.0.0

⚠️ Breaking Changes ⚠️
- The Magpylib inputs and outputs are now in **SI Units**.
- The `magnetization` parameter has also been redefined to reflect the true physical magnetization quantity in units of A/m.
Other Improvements
- The `magnetization` parameter is now codependent with the new `polarization` parameter that is the physical magnetic polarization ([712](https://github.com/magpylib/magpylib/issues/712)) in units of Tesla.
- Added `getM` (magnetization) and `getJ` (polarization) top level functions and class methods reminiscent of `getB` and `getH`.
- The `in_out` (inside/outside) parameter is added to all field functions (`getBHJM`) to specify the location of the observers relative to the magnet body in order to increase performance ([717](https://github.com/magpylib/magpylib/issues/717), [#608](https://github.com/magpylib/magpylib/issues/608))
- Review of documentation and adding a few requested things ([685](https://github.com/magpylib/magpylib/issues/685), some of [#659](https://github.com/magpylib/magpylib/issues/659))
- Added mu0 at top level as `magpylib.mu_0`. The value of mu0 is taken from scipy and follows the 2019 redefinition. All internal computations now include this new value. ([714](https://github.com/magpylib/magpylib/issues/714), [#731](https://github.com/magpylib/magpylib/issues/731))
- The core level now includes only the true bottom level implementations. ([727](https://github.com/magpylib/magpylib/issues/727))
- As Matplotlib graphic representation of 3D objects is terrible, we decided to go back to "arrow" graphic default mode when graphic backend is "Matplotlib".([735](https://github.com/magpylib/magpylib/issues/735))

4.5.1

- Fixed a field computation issue where H-field resulting from axial magnetization is computed incorrectly inside of Cylinders ([703](https://github.com/magpylib/magpylib/issues/703))

4.5.0

- Added optional handedness parameter for Sensors ([687](https://github.com/magpylib/magpylib/pull/687))
- Renaming classes: `Line`→`Polyline`, `Loop`→`Circle`. Old names are still valid but will issue a `DeprecationWarning` and will eventually be removed in the next major version ([690](https://github.com/magpylib/magpylib/pull/690))
- Rework CI/CD workflows ([686](https://github.com/magpylib/magpylib/pull/686))

4.4.1

- Fix deployment release ([682](https://github.com/magpylib/magpylib/pull/682))
- Fix axis mismatch on show/hide of sensor arrows ([679](https://github.com/magpylib/magpylib/pull/679))
- Documentation improvements ([673](https://github.com/magpylib/magpylib/pull/673))

4.4.0

- Included self-intersection check in `TriangularMesh` ([622](https://github.com/magpylib/magpylib/pull/622))
- Fixed incorrect edge case of TriangularMesh reorientation ([644](https://github.com/magpylib/magpylib/pull/644))
- Discontinuous segments in `current.Line` are now accepted and correctly treated as separate lines ([632](https://github.com/magpylib/magpylib/pull/632), [#642](https://github.com/magpylib/magpylib/pull/642))
- Objects can now be displayed with missing dimension and/or excitation ([640](https://github.com/magpylib/magpylib/pull/640))
- Added magnetization and current arrows `sizemode` styling option (absolute or scaled) ([639](https://github.com/magpylib/magpylib/pull/639))
- `Collection` objects now also have a default description when displayed (number of children) ([634](https://github.com/magpylib/magpylib/pull/634))
- Many minor graphic improvements ([663](https://github.com/magpylib/magpylib/pull/663), [#649](https://github.com/magpylib/magpylib/issues/649), [#653](https://github.com/magpylib/magpylib/issues/653))
- `legend` style option ([650](https://github.com/magpylib/magpylib/issues/650))
- Changed unit naming in text to comply with DIN Norm 641 ([614](https://github.com/magpylib/magpylib/issues/614))
- Improved documentation now boasting a contribution guide, a news-blog, an example and tutorial gallery, a getting started section and many other improvements ([621](https://github.com/magpylib/magpylib/issues/621), [#596](https://github.com/magpylib/magpylib/issues/596), [#580](https://github.com/magpylib/magpylib/issues/580))
- Improved numerical stability of `CylinderSegment`, ([648](https://github.com/magpylib/magpylib/issues/648), [#651](https://github.com/magpylib/magpylib/issues/651))

4.3.0

- New `TriangularMesh` magnet class added to conveniently work with triangular surface meshes instead of large collections of individual `Triangle` objects. The `TriangularMesh` class performs important checks (closed, connected, oriented) and can directly import pyvista objects and for convex hull bodies. ([569](https://github.com/magpylib/magpylib/issues/569), [#598](https://github.com/magpylib/magpylib/pull/598)).
- Added magnetization coloring for `matplotlib` backend ([597](https://github.com/magpylib/magpylib/pull/597))
- New automatic backend behavior, set to a dynamic default `auto` depending on the current environment and the given `canvas`, if provided. ([617](https://github.com/magpylib/magpylib/pull/617))
- Drop python 3.7 support, following python life cycle. ([616](https://github.com/magpylib/magpylib/pull/616))

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.