@@ -108,23 +108,23 @@ def test_round_trip():
108
108
iuint_types = [t for t in iuint_types if t in nifti_supported ]
109
109
f_types = [np .float32 , np .float64 ]
110
110
# Expanding standard deviations
111
- for i , sd_10 in enumerate ( sd_10s ) :
111
+ for sd_10 in sd_10s :
112
112
sd = 10.0 ** sd_10
113
113
V_in = rng .normal (0 , sd , size = (N , 1 ))
114
- for j , in_type in enumerate ( f_types ) :
115
- for k , out_type in enumerate ( iuint_types ) :
114
+ for in_type in f_types :
115
+ for out_type in iuint_types :
116
116
check_arr (sd_10 , V_in , in_type , out_type , scaling_type )
117
117
# Spread integers across range
118
- for i , sd in enumerate ( np .linspace (0.05 , 0.5 , 5 ) ):
119
- for j , in_type in enumerate ( iuint_types ) :
118
+ for sd in np .linspace (0.05 , 0.5 , 5 ):
119
+ for in_type in iuint_types :
120
120
info = np .iinfo (in_type )
121
121
mn , mx = info .min , info .max
122
122
type_range = mx - mn
123
123
center = type_range / 2.0 + mn
124
124
# float(sd) because type_range can be type 'long'
125
125
width = type_range * float (sd )
126
126
V_in = rng .normal (center , width , size = (N , 1 ))
127
- for k , out_type in enumerate ( iuint_types ) :
127
+ for out_type in iuint_types :
128
128
check_arr (sd , V_in , in_type , out_type , scaling_type )
129
129
130
130
0 commit comments