File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import numpy as np
22import itertools
33import math as m
4- import pint
54from magpylib ._src .obj_classes .class_magnet_Cuboid import Cuboid
65from magpylib ._src .obj_classes .class_magnet_Sphere import Sphere
76
@@ -48,9 +47,9 @@ def mesh_cuboid(object):
4847 ys_cent = ys [:- 1 ] + dy / 2 if len (ys )> 1 else ys + dy / 2
4948 zs_cent = zs [:- 1 ] + dz / 2 if len (zs )> 1 else zs + dz / 2
5049
51- if isinstance (a , pint .Quantity ):
52- permutas = np .array (list (itertools .product (xs_cent .magnitude , ys_cent .magnitude , zs_cent .magnitude )))
53- return permutas * xs_cent .units
50+ # if isinstance(a, pint.Quantity):
51+ # permutas = np.array(list(itertools.product(xs_cent.magnitude, ys_cent.magnitude, zs_cent.magnitude)))
52+ # return permutas * xs_cent.units
5453
5554 return np .array (list (itertools .product (xs_cent , ys_cent , zs_cent )))
5655
You can’t perform that action at this time.
0 commit comments