Skip to content

Commit f4188c2

Browse files
committed
fix LGTM, pre-release
1 parent 0d940dd commit f4188c2

File tree

8 files changed

+16
-14
lines changed

8 files changed

+16
-14
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,24 @@ All notable changes to magpylib are documented here.
66

77
# Releases
88

9-
## [2.2.0b] - 2019-12-27
9+
## [2.3.0b] - 2020-01-17
1010

1111
### Changed
1212
- Improved performance of getB for diametral magnetized Cylinders by 20%.
1313
- GetB of Line current now uses vectorized code which leads to massive performance enhancement.
1414
- **IMPORTANT:** position arguments of `getBv` functions have been flipped! First comes the source position POSm THEN the observer position POSo!
15+
- - getB(pos) now takes single AND vector position arguments. If a vector is handed to getB it will automatically execute vectorized code from the vector module.
1516

1617
### Added
1718
- completed the library vector functionality adding magnet Cylinder, moment Dipole, current Circular and Line. This includes adding several private vectorized functions (e.g. ellipticV) to mathLib_vector, adding respective tests and docu examples.
1819

20+
---
21+
22+
## [2.2.0b] - 2019-12-27
23+
- unreleased version
24+
25+
---
26+
1927
## [2.1.0b] - 2019-12-06
2028

2129
### Added
@@ -46,6 +54,8 @@ All notable changes to magpylib are documented here.
4654
- Performance computation trough vector functionality included in new top-level subpackge "vector"
4755
- Vectorized versions of math functions added to "math" subpackage
4856

57+
---
58+
4959
## [1.2.1b0] - 2019-07-31
5060
### Changed
5161
- Optimized getB call (utility integrated)

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def setup(app):
6868
# The short X.Y version
6969
version = ''
7070
# The full version, including alpha/beta/rc tags
71-
release = '2.1.0-beta'
71+
release = '2.3.0-beta'
7272

7373

7474
# -- General configuration ---------------------------------------------------

magpylib/_lib/fields/Current_CircularLoop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# page at https://www.github.com/magpylib/magpylib/issues.
2323
# -------------------------------------------------------------------------------
2424

25-
from numpy import sqrt, array, cos, sin, NaN
25+
from numpy import sqrt, array, NaN, cos, sin
2626
from magpylib._lib.mathLib import getPhi, ellipticK, ellipticE
2727
from warnings import warn
2828

magpylib/_lib/fields/Current_CircularLoop_vector.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222
# page at https://www.github.com/magpylib/magpylib/issues.
2323
# -------------------------------------------------------------------------------
2424

25-
from numpy import sqrt, array, cos, sin, NaN, arctan2, empty, pi
25+
from numpy import sqrt, arctan2, empty, pi
2626
from magpylib._lib.mathLib_vector import ellipticKV, ellipticEV, angleAxisRotationV_priv
27-
from warnings import warn
2827
import numpy as np
2928

3029

magpylib/_lib/fields/Current_Line_vector.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
# page at https://www.github.com/magpylib/magpylib/issues.
2323
# -------------------------------------------------------------------------------
2424

25-
from numpy import array, NaN
26-
from magpylib._lib.mathLib import fastSum3D, fastNorm3D, fastCross3D
27-
from warnings import warn
2825
import numpy as np
2926
from numpy.linalg import norm
3027

magpylib/_lib/fields/Moment_Dipole_vector.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
# page at https://www.github.com/magpylib/magpylib/issues.
2323
# -------------------------------------------------------------------------------
2424

25-
from magpylib._lib.mathLib import fastSum3D
26-
from numpy import pi, array, NaN
27-
from warnings import warn
25+
from numpy import pi
2826
import numpy as np
2927

3028
# %% DIPOLE field

magpylib/_lib/fields/PM_Cylinder_vector.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
# %% IMPORTS
3030
from numpy import pi, sqrt, array, arctan2, cos, sin
3131
import numpy as np
32-
from magpylib._lib.mathLib import elliptic,getPhi
33-
from warnings import warn
3432
from magpylib._lib.mathLib_vector import ellipticV
3533

3634
# Describes the magnetic field of a cylinder with circular top and bottom and

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# $ (packCondaTest) pip install .
1717
# The library is now in the packCondaTest environment.
1818
##
19-
_magPyVersion = "2.1.0-beta"
19+
_magPyVersion = "2.3.0-beta"
2020

2121
_SphinxVersion = "1.8.2"
2222
_name = "magpylib"

0 commit comments

Comments
 (0)