Skip to content

Commit 9d4934b

Browse files
jzwarclemens-fricke
authored andcommitted
HollowCube tests where falsly copy pasted
1 parent 40b1761 commit 9d4934b

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

splinepy/microstructure/tiles/hollow_cube.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,15 @@ def create_tile(
5959
parameters = (
6060
_np.ones(
6161
(len(self._evaluation_points), self._n_info_per_eval_point)
62-
).reshape(-1, 1)
62+
)
6363
* 0.2
6464
)
6565

6666
self.check_params(parameters)
6767

68-
if not (
69-
_np.all(parameters[:, :2] > 0.0)
70-
and _np.all(parameters[:, :2] < 0.5)
71-
):
68+
if not (_np.all(parameters > 0.0) and _np.all(parameters < 0.5)):
7269
raise ValueError("The wall thickness must be in (0.0 and 0.5)")
7370

74-
if not _np.all(
75-
(parameters[:, 2:] > _np.deg2rad(-30))
76-
and (parameters[:, 2:] < _np.deg2rad(30))
77-
):
78-
raise ValueError("Rotation is only allowed between +-30 deg")
79-
8071
if self.check_param_derivatives(parameter_sensitivities):
8172
n_derivatives = parameter_sensitivities.shape[2]
8273
derivatives = []

0 commit comments

Comments
 (0)