File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
splinepy/microstructure/tiles Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff 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 = []
You can’t perform that action at this time.
0 commit comments