@@ -1001,7 +1001,7 @@ def plot(
10011001 _t = [t_factor * t ] * len (lbl_vals )
10021002 # Plot each label individually to retrieve each corresponding Line2D object
10031003 p = itertools .chain .from_iterable (
1004- [sp11 .plot (__t , _lbl_vals , '.' ) for __t , _lbl_vals in zip (_t , lbl_vals )]
1004+ [sp11 .plot (__t , _lbl_vals , '.' ) for __t , _lbl_vals in zip (_t , lbl_vals , strict = False )]
10051005 )
10061006 if len (label_legend_to_plot ) != 0 :
10071007 sp11 .legend (list (p ), label_legend_to_plot , loc = 'upper left' )
@@ -1596,7 +1596,7 @@ def waveforms(self, append_RF: bool = False, time_range: Union[List[float], None
15961596 # element of the next shape.
15971597 shape_pieces [j ] = [shape_pieces [j ][0 ]] + [
15981598 cur if prev [0 , - 1 ] + eps < cur [0 , 0 ] else cur [:, 1 :]
1599- for prev , cur in zip (shape_pieces [j ][:- 1 ], shape_pieces [j ][1 :])
1599+ for prev , cur in zip (shape_pieces [j ][:- 1 ], shape_pieces [j ][1 :], strict = False )
16001600 ]
16011601
16021602 wave_data .append (np .concatenate (shape_pieces [j ], axis = 1 ))
@@ -1820,7 +1820,7 @@ def write(
18201820 # Check whether all gradients in the last block are ramped down properly
18211821 last_block_id = next (reversed (self .block_events ))
18221822 last_block = self .get_block (last_block_id )
1823- for channel , event in zip (('x' , 'y' , 'z' ), (last_block .gx , last_block .gy , last_block .gz )):
1823+ for channel , event in zip (('x' , 'y' , 'z' ), (last_block .gx , last_block .gy , last_block .gz ), strict = False ):
18241824 if (
18251825 event is not None
18261826 and event .type == 'grad'
0 commit comments