@@ -769,7 +769,7 @@ def setUp(self):
769769
770770 def test_numpy_array_int (self ):
771771 '''test to make sure int type numpy arrays are accepted'''
772- value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np . int )
772+ value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = int )
773773 self .base .annotate (data = value )
774774 result = {'data' : value }
775775 self .assertDictEqual (result , self .base .annotations )
@@ -858,13 +858,6 @@ def test_numpy_array_float(self):
858858 result = {'data' : value }
859859 self .assertDictEqual (result , self .base .annotations )
860860
861- def test_numpy_array_floating (self ):
862- '''test to make sure floating type numpy arrays are accepted'''
863- value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np .floating )
864- self .base .annotate (data = value )
865- result = {'data' : value }
866- self .assertDictEqual (result , self .base .annotations )
867-
868861 def test_numpy_array_double (self ):
869862 '''test to make sure double type numpy arrays are accepted'''
870863 value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np .double )
@@ -903,7 +896,7 @@ def test_numpy_array_float128(self):
903896
904897 def test_numpy_array_complex (self ):
905898 '''test to make sure complex type numpy arrays are accepted'''
906- value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np . complex )
899+ value = np .array ([1 , 2 , 3 , 4 , 5 ], complex )
907900 self .base .annotate (data = value )
908901 result = {'data' : value }
909902 self .assertDictEqual (result , self .base .annotations )
@@ -933,14 +926,14 @@ def test_numpy_scalar_complex256(self):
933926
934927 def test_numpy_array_bool (self ):
935928 '''test to make sure bool type numpy arrays are accepted'''
936- value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np . bool )
929+ value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = bool )
937930 self .base .annotate (data = value )
938931 result = {'data' : value }
939932 self .assertDictEqual (result , self .base .annotations )
940933
941934 def test_numpy_array_str (self ):
942935 '''test to make sure str type numpy arrays are accepted'''
943- value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np . str )
936+ value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = str )
944937 self .base .annotate (data = value )
945938 result = {'data' : value }
946939 self .assertDictEqual (result , self .base .annotations )
@@ -964,7 +957,7 @@ def setUp(self):
964957
965958 def test_numpy_scalar_int (self ):
966959 '''test to make sure int type numpy scalars are accepted'''
967- value = np .array (99 , dtype = np . int )
960+ value = np .array (99 , dtype = int )
968961 self .base .annotate (data = value )
969962 result = {'data' : value }
970963 self .assertDictEqual (result , self .base .annotations )
@@ -1053,13 +1046,6 @@ def test_numpy_scalar_float(self):
10531046 result = {'data' : value }
10541047 self .assertDictEqual (result , self .base .annotations )
10551048
1056- def test_numpy_scalar_floating (self ):
1057- '''test to make sure floating type numpy scalars are accepted'''
1058- value = np .array (99 , dtype = np .floating )
1059- self .base .annotate (data = value )
1060- result = {'data' : value }
1061- self .assertDictEqual (result , self .base .annotations )
1062-
10631049 def test_numpy_scalar_double (self ):
10641050 '''test to make sure double type numpy scalars are accepted'''
10651051 value = np .array (99 , dtype = np .double )
@@ -1098,7 +1084,7 @@ def test_numpy_scalar_float128(self):
10981084
10991085 def test_numpy_scalar_complex (self ):
11001086 '''test to make sure complex type numpy scalars are accepted'''
1101- value = np .array (99 , dtype = np . complex )
1087+ value = np .array (99 , dtype = complex )
11021088 self .base .annotate (data = value )
11031089 result = {'data' : value }
11041090 self .assertDictEqual (result , self .base .annotations )
@@ -1127,14 +1113,14 @@ def test_numpy_scalar_complex256(self):
11271113
11281114 def test_numpy_scalar_bool (self ):
11291115 '''test to make sure bool type numpy scalars are rejected'''
1130- value = np .array (99 , dtype = np . bool )
1116+ value = np .array (99 , dtype = bool )
11311117 self .base .annotate (data = value )
11321118 result = {'data' : value }
11331119 self .assertDictEqual (result , self .base .annotations )
11341120
11351121 def test_numpy_array_str (self ):
11361122 '''test to make sure str type numpy scalars are accepted'''
1137- value = np .array (99 , dtype = np . str )
1123+ value = np .array (99 , dtype = str )
11381124 self .base .annotate (data = value )
11391125 result = {'data' : value }
11401126 self .assertDictEqual (result , self .base .annotations )
@@ -1159,7 +1145,7 @@ def setUp(self):
11591145
11601146 def test_quantities_array_int (self ):
11611147 '''test to make sure int type quantites arrays are accepted'''
1162- value = pq .Quantity ([1 , 2 , 3 , 4 , 5 ], dtype = np . int , units = pq .s )
1148+ value = pq .Quantity ([1 , 2 , 3 , 4 , 5 ], dtype = int , units = pq .s )
11631149 self .base .annotate (data = value )
11641150 result = {'data' : value }
11651151 self .assertDictEqual (result , self .base .annotations )
@@ -1180,7 +1166,7 @@ def test_quantities_array_float(self):
11801166
11811167 def test_quantities_array_str (self ):
11821168 '''test to make sure str type quantites arrays are accepted'''
1183- value = pq .Quantity ([1 , 2 , 3 , 4 , 5 ], dtype = np . str , units = pq .meter )
1169+ value = pq .Quantity ([1 , 2 , 3 , 4 , 5 ], dtype = str , units = pq .meter )
11841170 self .base .annotate (data = value )
11851171 result = {'data' : value }
11861172 self .assertDictEqual (result , self .base .annotations )
@@ -1198,7 +1184,7 @@ def setUp(self):
11981184
11991185 def test_quantities_scalar_int (self ):
12001186 '''test to make sure int type quantites scalars are accepted'''
1201- value = pq .Quantity (99 , dtype = np . int , units = pq .s )
1187+ value = pq .Quantity (99 , dtype = int , units = pq .s )
12021188 self .base .annotate (data = value )
12031189 result = {'data' : value }
12041190 self .assertDictEqual (result , self .base .annotations )
@@ -1219,7 +1205,7 @@ def test_quantities_scalar_float(self):
12191205
12201206 def test_quantities_scalar_str (self ):
12211207 '''test to make sure str type quantites scalars are accepted'''
1222- value = pq .Quantity (99 , dtype = np . str , units = pq .meter )
1208+ value = pq .Quantity (99 , dtype = str , units = pq .meter )
12231209 self .base .annotate (data = value )
12241210 result = {'data' : value }
12251211 self .assertDictEqual (result , self .base .annotations )
0 commit comments