@@ -518,7 +518,7 @@ def _decode_msg15(self, msg_hdr):
518
518
num_rng = data [offset ]
519
519
codes = data [offset + 1 :offset + 1 + 2 * num_rng :2 ]
520
520
ends = data [offset + 2 :offset + 2 + 2 * num_rng :2 ]
521
- az_data .append (list (zip (ends , codes )))
521
+ az_data .append (list (zip (ends , codes , strict = False )))
522
522
offset += 2 * num_rng + 1
523
523
self .clutter_filter_map ['data' ].append (az_data )
524
524
@@ -1963,7 +1963,7 @@ def _unpack_packet_radial_data(self, code, in_sym_block):
1963
1963
rads .append ((start_az , end_az ,
1964
1964
self ._unpack_rle_data (
1965
1965
self ._buffer .read_binary (2 * rad .num_hwords ))))
1966
- start , end , vals = zip (* rads )
1966
+ start , end , vals = zip (* rads , strict = False )
1967
1967
return {'start_az' : list (start ), 'end_az' : list (end ), 'data' : list (vals ),
1968
1968
'center' : (hdr .i_center * self .pos_scale (in_sym_block ),
1969
1969
hdr .j_center * self .pos_scale (in_sym_block )),
@@ -1984,7 +1984,7 @@ def _unpack_packet_digital_radial(self, code, in_sym_block):
1984
1984
start_az = rad .start_angle * 0.1
1985
1985
end_az = start_az + rad .angle_delta * 0.1
1986
1986
rads .append ((start_az , end_az , self ._buffer .read_binary (rad .num_bytes )))
1987
- start , end , vals = zip (* rads )
1987
+ start , end , vals = zip (* rads , strict = False )
1988
1988
return {'start_az' : list (start ), 'end_az' : list (end ), 'data' : list (vals ),
1989
1989
'center' : (hdr .i_center * self .pos_scale (in_sym_block ),
1990
1990
hdr .j_center * self .pos_scale (in_sym_block )),
@@ -2148,7 +2148,7 @@ def _unpack_packet_digital_precipitation(self, code, in_sym_block):
2148
2148
row = self ._unpack_rle_data (row_bytes )
2149
2149
else :
2150
2150
row = []
2151
- for run , level in zip (row_bytes [::2 ], row_bytes [1 ::2 ]):
2151
+ for run , level in zip (row_bytes [::2 ], row_bytes [1 ::2 ], strict = False ):
2152
2152
row .extend ([level ] * run )
2153
2153
assert len (row ) == lfm_boxes
2154
2154
rows .append (row )
@@ -2164,7 +2164,7 @@ def _unpack_packet_linked_vector(self, code, in_sym_block):
2164
2164
value = None
2165
2165
scale = self .pos_scale (in_sym_block )
2166
2166
pos = [b * scale for b in self ._buffer .read_binary (num_bytes / 2 , '>h' )]
2167
- vectors = list (zip (pos [::2 ], pos [1 ::2 ]))
2167
+ vectors = list (zip (pos [::2 ], pos [1 ::2 ], strict = False ))
2168
2168
return {'vectors' : vectors , 'color' : value }
2169
2169
2170
2170
def _unpack_packet_vector (self , code , in_sym_block ):
@@ -2176,7 +2176,7 @@ def _unpack_packet_vector(self, code, in_sym_block):
2176
2176
value = None
2177
2177
scale = self .pos_scale (in_sym_block )
2178
2178
pos = [p * scale for p in self ._buffer .read_binary (num_bytes / 2 , '>h' )]
2179
- vectors = list (zip (pos [::4 ], pos [1 ::4 ], pos [2 ::4 ], pos [3 ::4 ]))
2179
+ vectors = list (zip (pos [::4 ], pos [1 ::4 ], pos [2 ::4 ], pos [3 ::4 ], strict = False ))
2180
2180
return {'vectors' : vectors , 'color' : value }
2181
2181
2182
2182
def _unpack_packet_contour_color (self , code , in_sym_block ):
@@ -2196,7 +2196,7 @@ def _unpack_packet_linked_contour(self, code, in_sym_block):
2196
2196
vectors = [(startx , starty )]
2197
2197
num_bytes = self ._buffer .read_int (2 , 'big' , signed = False )
2198
2198
pos = [b * scale for b in self ._buffer .read_binary (num_bytes / 2 , '>h' )]
2199
- vectors .extend (zip (pos [::2 ], pos [1 ::2 ]))
2199
+ vectors .extend (zip (pos [::2 ], pos [1 ::2 ], strict = False ))
2200
2200
return {'vectors' : vectors }
2201
2201
2202
2202
def _unpack_packet_wind_barbs (self , code , in_sym_block ):
0 commit comments