@@ -1403,7 +1403,7 @@ def tensor_arbitrary(double [:, ::1] stress, double [:, :] trans):
14031403 stress[i, 4 ] = r5
14041404 stress[i, 5 ] = r6
14051405
1406- return np.asarray(isnan, np.bool )
1406+ return np.asarray(isnan, np.bool_ )
14071407
14081408
14091409def tensor_strain_arbitrary (double [:, ::1] stress , double [:, :] trans ):
@@ -1476,7 +1476,7 @@ def tensor_strain_arbitrary(double [:, ::1] stress, double [:, :] trans):
14761476 stress[i, 4 ] = r5* 2
14771477 stress[i, 5 ] = r6* 2
14781478
1479- return np.asarray(isnan, np.bool )
1479+ return np.asarray(isnan, np.bool_ )
14801480
14811481
14821482def tensor_rotate_z (double [:, :] stress , float theta_z ):
@@ -1518,7 +1518,7 @@ def tensor_rotate_z(double [:, :] stress, float theta_z):
15181518 stress[i, 4 ] = c* s_yz + s* s_xz
15191519 stress[i, 5 ] = c* s_xz - s* s_yz
15201520
1521- return np.asarray(isnan, dtype = np.bool )
1521+ return np.asarray(isnan, dtype = np.bool_ )
15221522
15231523
15241524def compute_principal_stress (double [:, ::1] stress ):
@@ -1615,7 +1615,7 @@ def compute_principal_stress(double [:, ::1] stress):
16151615
16161616 pstress[i, 4 ] = sqrt(0.5 * (c1** 2 + c2** 2 + c3** 2 ))
16171617
1618- return np.asarray(pstress), np.asarray(isnan, np.bool )
1618+ return np.asarray(pstress), np.asarray(isnan, np.bool_ )
16191619
16201620
16211621def affline_transform (float_or_double [:, ::1] points , float_or_double [:, ::1] t ):
@@ -1669,7 +1669,7 @@ def cells_with_all_nodes(index_type [::1] offset, index_type [::1] cells,
16691669 if point_mask[cells[j]] != 1 :
16701670 cell_mask[i] = 0
16711671
1672- return np.asarray(cell_mask, dtype = np.bool )
1672+ return np.asarray(cell_mask, dtype = np.bool_ )
16731673
16741674
16751675def cells_with_any_nodes (index_type [::1] offset , index_type [::1] cells ,
@@ -1693,7 +1693,7 @@ def cells_with_any_nodes(index_type [::1] offset, index_type [::1] cells,
16931693 cell_mask[i] = 1
16941694 break
16951695
1696- return np.asarray(cell_mask, dtype = np.bool )
1696+ return np.asarray(cell_mask, dtype = np.bool_ )
16971697
16981698
16991699def midside_mask (uint8 [::1] celltypes , index_type [::1] cells ,
@@ -1746,7 +1746,7 @@ def midside_mask(uint8 [::1] celltypes, index_type [::1] cells,
17461746 mask[cells[j]] = 1
17471747
17481748 # return as a bool array without copying
1749- return np.asarray(mask).view(np.bool )
1749+ return np.asarray(mask).view(np.bool_ )
17501750
17511751
17521752def euler_cart_to_cyl (double [:, ::1] stress , double [::1] angles ):
0 commit comments