Skip to content

Commit d5eaf68

Browse files
committed
prepare for pypi
1 parent aff49b6 commit d5eaf68

File tree

12 files changed

+33
-42
lines changed

12 files changed

+33
-42
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# v0.1.4
2+
- prepare for pypi
3+
- rename into "magpylib-force"
4+
5+
# v0.1.3
6+
- initial release with first working and tested codes

example.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

magpylib_force/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from magpylib_force.force import getFTcube
2+
from magpylib_force.force import getFTwire
3+
4+
"""
5+
The magpylib-force package sits on top of magpylib for force computation
6+
"""
7+
8+
# module level dunders
9+
__version__ = "0.1.4"
10+
__author__ = "SAL"
11+
__all__ = [
12+
"getFTcube",
13+
"getFTwire",
14+
]

mforce/force.py renamed to magpylib_force/force.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import numpy as np
22
import magpylib as magpy
3-
from mforce.mesh import mesh_cuboid
4-
from mforce.utility import check_input_anchor
5-
from mforce.utility import check_input_targets_Cuboid
6-
from mforce.utility import check_input_targets_Polyline
3+
from magpylib_force.mesh import mesh_cuboid
4+
from magpylib_force.utility import check_input_anchor
5+
from magpylib_force.utility import check_input_targets_Cuboid
6+
from magpylib_force.utility import check_input_targets_Polyline
77

88

99
def getFTcube(sources, targets, eps=1e-5, anchor=None, squeeze=True):
File renamed without changes.
File renamed without changes.

mforce/__init__.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
2-
name = "mforce"
3-
version = "0.1.3"
2+
name = "magpylib-force"
3+
version = "0.1.4"
44
dependencies = [
55
"numpy>=1.20",
66
"scipy>=1.7",

tests/test_FEM.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import numpy as np
22
import magpylib as magpy
3-
from mforce.force import getFTcube
3+
from magpylib_force.force import getFTcube
44

55

66
def test_ANSYS_cube_cube():

tests/test_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
22
import magpylib as magpy
3-
from mforce.force import getFTcube
4-
from mforce.force import getFTwire
3+
from magpylib_force.force import getFTcube
4+
from magpylib_force.force import getFTwire
55

66
def test_getFTwire_target_inputs_01():
77
"""

0 commit comments

Comments
 (0)